mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
bounds.reshape doesn't modify bounds it returns a new array
This commit is contained in:
parent
030f73a869
commit
a9933c5ecf
1 changed files with 4 additions and 4 deletions
|
|
@ -206,9 +206,9 @@ class WeightWindows(IDManagerMixin):
|
|||
# reshape data according to mesh and energy bins
|
||||
bounds = np.asarray(bounds)
|
||||
if isinstance(self.mesh, UnstructuredMesh):
|
||||
bounds.reshape(-1, self.num_energy_bins)
|
||||
bounds = bounds.reshape(-1, self.num_energy_bins)
|
||||
else:
|
||||
bounds.reshape(*self.mesh.dimension, self.num_energy_bins)
|
||||
bounds = bounds.reshape(*self.mesh.dimension, self.num_energy_bins)
|
||||
self._lower_ww_bounds = bounds
|
||||
|
||||
@property
|
||||
|
|
@ -225,9 +225,9 @@ class WeightWindows(IDManagerMixin):
|
|||
# reshape data according to mesh and energy bins
|
||||
bounds = np.asarray(bounds)
|
||||
if isinstance(self.mesh, UnstructuredMesh):
|
||||
bounds.reshape(-1, self.num_energy_bins)
|
||||
bounds = bounds.reshape(-1, self.num_energy_bins)
|
||||
else:
|
||||
bounds.reshape(*self.mesh.dimension, self.num_energy_bins)
|
||||
bounds = bounds.reshape(*self.mesh.dimension, self.num_energy_bins)
|
||||
self._upper_ww_bounds = bounds
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue