LoadFilesFromPathAndTag#

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

Bases: LoadFilesFromParams

Load files using all combinations of given paths and tags.

paths should be provided with {tag} as a stand-in for places where the tag is inserted. Specifically, tags are insterted by calling path.format(tag=tag).

This is intended to replicate specific patterns which arent available with glob, such as /path/to/files/*[tag1, tag2]/*.h5.

Attributes:
pathslist[PathLike]

List of files paths, with {tag} as a stand-in where tags should be inserted.

tagslist[str]

List of tags

Methods#

setup()

Construct the list of files.