mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
add tests for IncidentPhoton.from_hdf5
This commit is contained in:
parent
fefb68a866
commit
db66dfbd17
1 changed files with 3 additions and 0 deletions
|
|
@ -129,3 +129,6 @@ def test_export_to_hdf5(tmpdir, element):
|
|||
filename = str(tmpdir.join('tmp.h5'))
|
||||
element.export_to_hdf5(filename)
|
||||
assert os.path.exists(filename)
|
||||
# Read in data from hdf5 and export again
|
||||
element2 = openmc.data.IncidentPhoton.from_hdf5(filename)
|
||||
element2.export_to_hdf5(filename, 'w')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue