utils.save_dict_to_hdf5_attrs#
Back to Module page
Summary#
Saves a dictionary to the attributes of a hdf5 file
Signature#
def save_dict_to_hdf5_attrs(fobj, dic, keys_to_skip = None, overwrite = False)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
hdf5 file or group object |
||
|
Dictionary to save |
||
|
None |
List of keys to skip |
|
|
False |
If True, overwrite existing attributes |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
None |
Docstring#
Saves a dictionary to the attributes of a hdf5 file
:param fobj: hdf5 file or group object
:param dic: Dictionary to save
:param keys_to_skip: List of keys to skip
:param overwrite: If True, overwrite existing attributes
:return: None