mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Returning a tuple for RegularMesh.dimension
This commit is contained in:
parent
80563f1b8c
commit
43033b656c
2 changed files with 2 additions and 2 deletions
|
|
@ -324,7 +324,7 @@ class RegularMesh(StructuredMesh):
|
|||
|
||||
@property
|
||||
def dimension(self):
|
||||
return self._dimension
|
||||
return tuple(self._dimension)
|
||||
|
||||
@property
|
||||
def n_dimension(self):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue