mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Support older versions of HDF5 data for IncidentNeutron.from_hdf5
This commit is contained in:
parent
7c3c0bb731
commit
3079afa3d8
1 changed files with 1 additions and 5 deletions
|
|
@ -502,11 +502,7 @@ class IncidentNeutron(EqualityMixin):
|
|||
# Make sure version matches
|
||||
if 'version' in h5file.attrs:
|
||||
major, minor = h5file.attrs['version']
|
||||
if major != HDF5_VERSION_MAJOR:
|
||||
raise IOError(
|
||||
'HDF5 data format uses version {}.{} whereas your '
|
||||
'installation of the OpenMC Python API expects version '
|
||||
'{}.x.'.format(major, minor, HDF5_VERSION_MAJOR))
|
||||
# For now all versions of HDF5 data can be read
|
||||
else:
|
||||
raise IOError(
|
||||
'HDF5 data does not indicate a version. Your installation of '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue