LoadFilesAndSelect#

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

Bases: BaseLoadFiles

Load a collection of files on setup and select specific entries on process.

Attributes:
filesSequence[PathLike]

A list of file paths or a glob pattern specifying the files to load.

key_formatstr

A format string used to generate keys for file selection. Can reference any variables contained in the attributes of the containers. If None, files are stored with numerical indices.

Methods#

process(incont)

Select and return a file from the collection based on the input container.

setup()

Load and store files in a dictionary.