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)
Input variables#

Name

Type

Default

Description

fobj

hdf5 file or group object

dic

Dictionary to save

keys_to_skip

None

List of keys to skip

overwrite

False

If True, overwrite existing attributes

Output variables#

Return annotation

Docstring type

Description

None

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