mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Try numpy assert_array_equal
This commit is contained in:
parent
2b95dd30e2
commit
ba644ca335
1 changed files with 1 additions and 2 deletions
|
|
@ -77,8 +77,7 @@ class SurfaceSourceTestHarness(PyAPITestHarness):
|
|||
src_true = f['source_bank'][()]
|
||||
with h5py.File("surface_source.h5", 'r') as f:
|
||||
src_test = f['source_bank'][()]
|
||||
for (true_p, test_p) in zip(np.sort(src_true), np.sort(src_test)):
|
||||
assert true_p == test_p
|
||||
np.testing.assert_array_equal(np.sort(src_true), np.sort(src_test))
|
||||
|
||||
def execute_test(self):
|
||||
"""Build input XMLs, run OpenMC, check output and results."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue