add_source_filenames

lstchain.io.io.add_source_filenames(h5file, file_list)

Adds the list of source filenames to the HDF5 file.

This function appends the list of source filenames to the HDF5 file specified by h5file. If the node /source_filenames already exists, it is removed and recreated with the new list of filenames.

Parameters:
h5filestr or tables.File

The path to the HDF5 file or an open HDF5 file object.

file_listlist of str or PosixPath

A list of paths to the source files.

Notes

This function modifies the HDF5 file by adding or updating the /source_filenames node with the list of source filenames.