diff --git a/dolfyn/_version.py b/dolfyn/_version.py index c6e8585b..bafede40 100644 --- a/dolfyn/_version.py +++ b/dolfyn/_version.py @@ -1,6 +1,6 @@ -__version__ = '0.8.2' +__version__ = '0.8.3' __prog_name__ = 'DOLfYN' -__version_date__ = 'Nov-12-2018' +__version_date__ = 'Nov-13-2018' def ver2tuple(ver): diff --git a/dolfyn/io/hdf5.py b/dolfyn/io/hdf5.py index 2fc0052e..0095400d 100644 --- a/dolfyn/io/hdf5.py +++ b/dolfyn/io/hdf5.py @@ -17,6 +17,12 @@ from six import string_types import sys from .. import _version as _ver +try: + # There is an organizational inconsistenty in different versions of h5py. + # Some have the 'highlevel' module + h5_group = h5.highlevel.Group +except AttributeError: + h5_group = h5.Group if sys.version_info >= (3, 0): @@ -621,7 +627,7 @@ def iter_groups(self, groups=None, where='/', no_essential=False): """ for grp in list(self.get_group(where).values()): - if grp.__class__ is h5.highlevel.Group: + if grp.__class__ is h5_group: gnm = self.get_name(grp) if groups is None: