mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Add surface source read/write tests on settings unit test
This commit is contained in:
parent
cc35910074
commit
770d0e0ca0
1 changed files with 4 additions and 0 deletions
|
|
@ -20,6 +20,8 @@ def test_export_to_xml(run_in_tmpdir):
|
|||
s.sourcepoint = {'batches': [50, 150, 500, 1000], 'separate': True,
|
||||
'write': True, 'overwrite': True}
|
||||
s.statepoint = {'batches': [50, 150, 500, 1000]}
|
||||
s.surf_src_read = {'path': 'surface_source_1.h5'}
|
||||
s.surf_src_write = {'surf_ids': [2], 'max_surf_banks': 200}
|
||||
s.confidence_intervals = True
|
||||
s.ptables = True
|
||||
s.seed = 17
|
||||
|
|
@ -76,6 +78,8 @@ def test_export_to_xml(run_in_tmpdir):
|
|||
assert s.sourcepoint == {'batches': [50, 150, 500, 1000], 'separate': True,
|
||||
'write': True, 'overwrite': True}
|
||||
assert s.statepoint == {'batches': [50, 150, 500, 1000]}
|
||||
assert s.surf_src_read == {'path': 'surface_source_1.h5'}
|
||||
assert s.surf_src_write == {'surf_ids': [2], 'max_surf_banks': 200}
|
||||
assert s.confidence_intervals
|
||||
assert s.ptables
|
||||
assert s.seed == 17
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue