mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Fixed issue with dropping scores from MGXS Pandas DF with multi-indexed distribcell paths
This commit is contained in:
parent
417b9a86a6
commit
b01c0281ce
1 changed files with 1 additions and 4 deletions
|
|
@ -1415,10 +1415,7 @@ class MGXS(object):
|
|||
distribcell_paths=distribcell_paths)
|
||||
|
||||
# Remove the score column since it is homogeneous and redundant
|
||||
if distribcell_paths and 'distribcell' in self.domain_type:
|
||||
df = df.drop('score', level=0, axis=1)
|
||||
else:
|
||||
df = df.drop('score', axis=1)
|
||||
df = df.drop('score', axis=1)
|
||||
|
||||
# Override energy groups bounds with indices
|
||||
all_groups = np.arange(self.num_groups, 0, -1, dtype=np.int)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue