HDF5.to_dict
to_dict(h5file)
Reads an HDF5 file (or sub-group) and returns its contents as a nested HDF5Dict.
Parameters
- h5file : h5py.File, h5py.Group, Path, or str
- HDF5 source to read. An open
h5py.Fileor a path/stris parsed from the root; an openh5py.Groupis parsed from that group onward. A"file.h5::/internal/group"string (the::delimiter) opens the file and parses from the named internal group onward.
Returns
- HDF5Dict
- Nested dict mirroring the HDF5 hierarchy. Datasets become numpy arrays; attributes are stored under
"_attrs".