utils.read_hdf5_node#
Back to Module page
Summary#
Convenience function to read/create a group from a hdf5 file
Signature#
def read_hdf5_node(fobj, h5path, create = True, raise_error = False)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
hdf5 file or group |
||
|
String, or an iterable of strings to reach the leaf |
||
|
True |
If True, we create what doesn’t exist |
|
|
False |
If True, raise an error if the path doesn’t exist |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
group object, or None if it doesn’t exist and create and raise_error are False |
Docstring#
Convenience function to read/create a group from a hdf5 file
:param fobj: hdf5 file or group
:param h5path: String, or an iterable of strings to reach the leaf
:param create: If True, we create what doesn't exist
:param raise_error: If True, raise an error if the path doesn't exist
:return:
group object, or None if it doesn't exist and create and raise_error
are False