Returning a tuple for RegularMesh.dimension

This commit is contained in:
Patrick Shriwise 2022-10-27 14:47:16 -05:00
parent 80563f1b8c
commit 43033b656c
2 changed files with 2 additions and 2 deletions

View file

@ -324,7 +324,7 @@ class RegularMesh(StructuredMesh):
@property
def dimension(self):
return self._dimension
return tuple(self._dimension)
@property
def n_dimension(self):

View file

@ -370,7 +370,7 @@ class WeightWindows(IDManagerMixin):
particle_type = get_text(elem, 'particle_type')
survival_ratio = float(get_text(elem, 'survival_ratio'))
ww_shape = (len(e_bounds) - 1,) + tuple(mesh.dimension[::-1])
ww_shape = (len(e_bounds) - 1,) + mesh.dimension[::-1]
lower_ww_bounds = np.array(lower_ww_bounds).reshape(ww_shape).T
upper_ww_bounds = np.array(upper_ww_bounds).reshape(ww_shape).T