slice_files

coffea.dataset_tools.slice_files(fileset: Dict[str, DatasetSpec], theslice: Any = slice(None, None, None)) Dict[str, DatasetSpec][source]

Modify the input dataset so that only the files of each dataset specified by the input slice are processed. :param fileset: The set of datasets to be sliced. :type fileset: FilesetSpec :param theslice: How to slice the array of files in the input datasets. We slice in key-order. :type theslice: Any, default slice(None)

Returns:

out – The reduce fileset with only the files specified by theslice left.

Return type:

FilesetSpec