mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 14:35:27 -04:00
Fix for pandas version 3 (#3743)
This commit is contained in:
parent
2691ff8a0f
commit
c5df2bf621
2 changed files with 4 additions and 2 deletions
|
|
@ -203,7 +203,9 @@ class AtomicRelaxation(EqualityMixin):
|
|||
for subshell, df in transitions.items():
|
||||
cv.check_value('subshell', subshell, _SUBSHELLS)
|
||||
cv.check_type('transitions', df, pd.DataFrame)
|
||||
self._transitions = transitions
|
||||
self._transitions = {
|
||||
subshell: df.convert_dtypes() for subshell, df in transitions.items()
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def from_ace(cls, ace):
|
||||
|
|
|
|||
|
|
@ -1982,7 +1982,7 @@ class Tally(IDManagerMixin):
|
|||
|
||||
# Expand the columns into Pandas MultiIndices for readability
|
||||
if pd.__version__ >= '0.16':
|
||||
columns = copy.deepcopy(df.columns.values)
|
||||
columns = copy.deepcopy(list(df.columns.values))
|
||||
|
||||
# Convert all elements in columns list to tuples
|
||||
for i, column in enumerate(columns):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue