list_of_filelists#

caput.pipeline.tasklib.io.list_of_filelists(files)[source]#

Take in a list of lists/glob patterns of filenames.

Parameters:
filesSequence[PathLike] | Sequence[list[Pathlike]]

A path or glob pattern (e.g. “/my/data/*.h5)” or a list of those (or a list of lists of those).

Returns:
flattened_listlist[PathLike]

The input file list. Any glob patterns will be flattened to file path string lists.

Raises:
CaputConfigError

If files has the wrong format or refers to a file that doesn’t exist.