v 0.2 is ok, not sure what the future brings so better check

This commit is contained in:
Martin Diehl 2019-10-03 20:23:49 +02:00
parent 0b29d08109
commit b8a1a5bb7d
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class DADF5():
"""
with h5py.File(filename,'r') as f:
if f.attrs['DADF5-major'] != 0 or f.attrs['DADF5-minor'] <= 2:
if f.attrs['DADF5-major'] != 0 or not 2 <= f.attrs['DADF5-minor'] <= 3:
raise TypeError('Unsupported DADF5 version {} '.format(f.attrs['DADF5-version']))
self.structured = 'grid' in f['geometry'].attrs.keys()