One more fix for HDF5 version compatibility

This commit is contained in:
amandalund 2018-09-13 11:44:47 -05:00
parent 6280cb45c3
commit d02d565aaf

View file

@ -667,7 +667,7 @@ class IncidentPhoton(EqualityMixin):
"""
# Open file and write version
f = h5py.File(path, mode, libver='latest')
f = h5py.File(path, mode, libver=libver)
f.attrs['filetype'] = np.string_('data_photon')
if 'version' not in f.attrs:
f.attrs['version'] = np.array(HDF5_VERSION)