list_of_filelists#
- caput.pipeline.tasklib.io.list_of_filelists(files)[source]#
Take in a list of lists/glob patterns of filenames.
- Parameters:
- files
Sequence[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).
- files
- Returns:
- flattened_list
list[PathLike] The input file list. Any glob patterns will be flattened to file path string lists.
- flattened_list
- Raises:
CaputConfigErrorIf files has the wrong format or refers to a file that doesn’t exist.