bilby.core.utils.io.recursively_load_dict_contents_from_group

bilby.core.utils.io.recursively_load_dict_contents_from_group(h5file, path)[source]

Recursively load a HDF5 file into a dictionary

Added in version 1.1.0.

Parameters:
h5file: h5py.File

Open h5py file object

path: str

Path within the HDF5 file

Returns:
output: dict

The contents of the HDF5 file unpacked into the dictionary.