mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
use get_reshaped_data in tests
This commit is contained in:
parent
1e94a0c7d7
commit
ab4237c037
2 changed files with 2 additions and 2 deletions
|
|
@ -93,6 +93,6 @@ def test_offset_mesh(model, estimator, origin):
|
|||
|
||||
# check that the lower half of the mesh contains a tally result
|
||||
# and that the upper half is zero
|
||||
mean = tally.mean.reshape(mesh.dimension[::-1]).T
|
||||
mean = tally.get_reshaped_data('mean', expand_dims=True)
|
||||
# assert np.count_nonzero(mean[:, :, :5]) == mean.size / 2
|
||||
# assert np.count_nonzero(mean[:, :, 5:]) == 0
|
||||
|
|
|
|||
|
|
@ -93,6 +93,6 @@ def test_offset_mesh(model, estimator, origin):
|
|||
|
||||
# check that the lower half of the mesh contains a tally result
|
||||
# and that the upper half is zero
|
||||
mean = tally.mean.reshape(mesh.dimension[::-1]).T
|
||||
mean = tally.get_reshaped_data('mean', expand_dims=True)
|
||||
# assert np.count_nonzero(mean[:, :, :5]) == mean.size / 2
|
||||
# assert np.count_nonzero(mean[:, :, 5:]) == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue