itsh5py.load#

itsh5py.load(hdf, unpack_attrs=False, unpacker=<function unpack_dataset>)[source]#

Returns a dictionary containing the groups as keys and the datasets as values from given hdf file.

Parameters
  • hdf (string, Path) – Path to hdf file.

  • unpack_attrs (bool, optional) – If True attrs from h5 file will be unpacked and are available as dict key attrs, no matter if lazy or not. Defaults to False.

  • unpacker (callable) – Unpack function gets value of type h5py.Dataset. Must return the data you would like to have it in the returned dict.

Returns

result – The dictionary containing all groupnames as keys and datasets as values. Can be lazy and thus not unwrapped.

Return type

dict, LazyHdfDict