Propagate attribute to openmc.mgxs

This commit is contained in:
Labossiere-Hickman, Travis James 2026-07-17 13:23:48 -06:00
parent eefe563f08
commit 6ee22ed061
2 changed files with 2 additions and 2 deletions

View file

@ -877,7 +877,7 @@ class MDGXS(MGXS):
# energy groups such that data is from fast to thermal
if self.domain_type == 'mesh':
mesh_str = f'mesh {self.domain.id}'
mesh_cols = [(mesh_str, label) for label in self.domain._axis_labels]
mesh_cols = [(mesh_str, label) for label in self.domain.axis_labels]
df.sort_values(by=mesh_cols + columns, inplace=True)
else:
df.sort_values(by=[self.domain_type] + columns, inplace=True)

View file

@ -2134,7 +2134,7 @@ class MGXS:
# energy groups such that data is from fast to thermal
if self.domain_type == 'mesh':
mesh_str = f'mesh {self.domain.id}'
mesh_cols = [(mesh_str, label) for label in self.domain._axis_labels]
mesh_cols = [(mesh_str, label) for label in self.domain.axis_labels]
df.sort_values(by=mesh_cols + columns, inplace=True)
else:
df.sort_values(by=[self.domain_type] + columns, inplace=True)