h5py_File_write_dict#
- pybrops.core.util.h5py.h5py_File_write_dict(h5file, groupname, in_dict, overwrite=True)[source]#
Recursively save dictionary contents to an open HDF5 file.
- Parameters:
h5file (h5py.File) – An open, writable HDF5 file stream.
groupname (str) – String representation of group name. Must be terminated by ‘/’.
in_dict (dict) – Input dictionary to save to HDF5 file. If a field in
in_dict
isNone
, skip the field; do not create a group for key associated withNone
item.overwrite (bool) – Whether to overwrite fields
- Return type:
None