From b01c0281cec94c1ee1e397617f8a42a36eb2dde7 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Sun, 8 May 2016 11:50:09 -0400 Subject: [PATCH] Fixed issue with dropping scores from MGXS Pandas DF with multi-indexed distribcell paths --- openmc/mgxs/mgxs.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/openmc/mgxs/mgxs.py b/openmc/mgxs/mgxs.py index a5c56034e8..99a3d8bfe8 100644 --- a/openmc/mgxs/mgxs.py +++ b/openmc/mgxs/mgxs.py @@ -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)