LoadFilesFromAttrs#
- class caput.pipeline.tasklib.io.LoadFilesFromAttrs[source]#
Bases:
BaseLoadFilesLoad 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
BaseLoadFilesand provides functionality to load files into a container.- Attributes:
- filename
PathLike 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.
- filename
Methods#
|
Load a file based on attributes from the input container. |