From 3079afa3d8e71af59c346ddb5f99034e27c6a447 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 13 Nov 2018 06:51:03 -0600 Subject: [PATCH] Support older versions of HDF5 data for IncidentNeutron.from_hdf5 --- openmc/data/neutron.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/openmc/data/neutron.py b/openmc/data/neutron.py index 61bea997b8..eec0836029 100644 --- a/openmc/data/neutron.py +++ b/openmc/data/neutron.py @@ -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 '