Skip to content
Snippets Groups Projects
Commit 379547a9 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-000: fix for new h5py version

parent 37533353
No related branches found
No related tags found
1 merge request!260syncing cob-master with master again
...@@ -661,7 +661,8 @@ def combine_hypercubes(input_paths, output_dir, output_filename=None, do_compres ...@@ -661,7 +661,8 @@ def combine_hypercubes(input_paths, output_dir, output_filename=None, do_compres
if len(versions) != 1: if len(versions) != 1:
raise ValueError('Cannot combine h5 files of multiple versions: %s' % (', '.join(versions),)) raise ValueError('Cannot combine h5 files of multiple versions: %s' % (', '.join(versions),))
version_str = list(versions)[0] versions = [v.decode('utf-8') if isinstance(v, bytes) else v for v in versions]
version_str = versions[0]
if version_str != '1.4': if version_str != '1.4':
raise ValueError('Cannot read version %s' % (version_str,)) raise ValueError('Cannot read version %s' % (version_str,))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment