Allow `key in hdf5file` syntax in python
1 unresolved thread
1 unresolved thread
Compare changes
+ 50
− 19
@@ -33,6 +33,12 @@ class HDF5File(HDF5File_C):
@@ -44,7 +50,8 @@ def _is_string(s):
@@ -64,9 +71,10 @@ def create_directories_safe(directory, dryrun=False):
@@ -117,10 +125,15 @@ def load(inputs):
@@ -153,9 +166,12 @@ def merge(filenames):
@@ -171,7 +187,9 @@ def save(array, filename, create_directories = False):
@@ -186,6 +204,7 @@ def save(array, filename, create_directories = False):
@@ -214,6 +233,7 @@ def append(array, filename):
@@ -234,6 +254,7 @@ def peek(filename):
@@ -254,9 +275,11 @@ def peek_all(filename):
@@ -267,14 +290,18 @@ def get_include_directories():
@@ -283,7 +310,9 @@ def get_include_directories():
@@ -295,19 +324,21 @@ def get_include_directories():
This is the only change. The rest is lint.
https://docs.python.org/3/reference/datamodel.html#object.__contains__