write_to_hdf5#

ctapipe.io.metadata.write_to_hdf5(metadata, h5file, path='/')[source]#

Write flattened metadata as attributes of an HDF5 node.

Parameters:
metadatacollections.abc.Mapping

Flat metadata, for example as generated by ctao_datamodel.flatten_model_instance() or Reference.to_dict().

h5filetables.File

Open PyTables file handle.

pathstr

Path of the existing HDF5 node receiving the attributes.