mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Updating dimension type to tuple in a couple of test checks
This commit is contained in:
parent
43033b656c
commit
b00404be7c
2 changed files with 3 additions and 2 deletions
|
|
@ -55,6 +55,7 @@ def model():
|
|||
|
||||
return model
|
||||
|
||||
|
||||
def test_dagmc(model):
|
||||
harness = PyAPITestHarness('statepoint.5.h5', model)
|
||||
harness.main()
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ def test_export_to_xml(run_in_tmpdir):
|
|||
assert isinstance(s.entropy_mesh, openmc.RegularMesh)
|
||||
assert s.entropy_mesh.lower_left == [-10., -10., -10.]
|
||||
assert s.entropy_mesh.upper_right == [10., 10., 10.]
|
||||
assert s.entropy_mesh.dimension == [5, 5, 5]
|
||||
assert s.entropy_mesh.dimension == (5, 5, 5)
|
||||
assert s.trigger_active
|
||||
assert s.trigger_max_batches == 10000
|
||||
assert s.trigger_batch_interval == 50
|
||||
|
|
@ -102,7 +102,7 @@ def test_export_to_xml(run_in_tmpdir):
|
|||
assert isinstance(s.ufs_mesh, openmc.RegularMesh)
|
||||
assert s.ufs_mesh.lower_left == [-10., -10., -10.]
|
||||
assert s.ufs_mesh.upper_right == [10., 10., 10.]
|
||||
assert s.ufs_mesh.dimension == [5, 5, 5]
|
||||
assert s.ufs_mesh.dimension == (5, 5, 5)
|
||||
assert s.resonance_scattering == {'enable': True, 'method': 'rvs',
|
||||
'energy_min': 1.0, 'energy_max': 1000.0,
|
||||
'nuclides': ['U235', 'U238', 'Pu239']}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue