We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98955d9 commit a1d2182Copy full SHA for a1d2182
qiita_files/util.py
@@ -11,9 +11,13 @@
11
import h5py
12
13
14
-# not present in all 2.x series
15
-if hasattr(h5py.get_config(), 'default_file_mode'):
16
- h5py.get_config().default_file_mode = 'r'
+# deprecated sind h5py 3.3,
+# see https://docs.h5py.org/en/stable/whatsnew/3.6.html
+h5py_version = list(map(int, h5py.__version__.split('.')))
17
+if h5py_version < [3, 3, 0]:
18
+ # not present in all 2.x series
19
+ if hasattr(h5py.get_config(), 'default_file_mode'):
20
+ h5py.get_config().default_file_mode = 'r'
21
22
23
def _is_string_or_bytes(s):
0 commit comments