hdf5 module¶
Helper functions for hdf5 data.
Functions:
|
Return a group from a h5py data handle. |
- gemseo.utils.hdf5.get_hdf5_group(h5py_data, name)[source]¶
Return a group from a h5py data handle.
This function shall be used to show a better error message to the end user.
- Parameters
h5py_data (Union[h5py._hl.files.File, h5py._hl.group.Group]) – The hdf5 data handle.
name (str) – The name of the group.
- Returns
The contents of the group.
- Raises
KeyError if the group does not exist. –
- Return type
h5py._hl.group.Group