LoadFilesFromAttrs#

class caput.pipeline.tasklib.io.LoadFilesFromAttrs[source]#

Bases: BaseLoadFiles

Load files from paths constructed using the attributes of another container.

This class enables the dynamic generation of file paths by formatting a specified filename template with attributes from an input container. It inherits from BaseLoadFiles and provides functionality to load files into a container.

Attributes:
filenamePathLike

Template for the file path, which can include placeholders referencing attributes in the input container. For example: rfi_mask_lsd_{lsd}.h5. The placeholders will be replaced with corresponding attribute values from the input container.

Methods#

process(incont)

Load a file based on attributes from the input container.