slice_files#
- coffea.dataset_tools.slice_files(fileset: DataGroupSpec, theslice: Any = slice(None, None, None)) DataGroupSpec[source]#
Modify the input fileset so that only the files of each dataset specified by the input slice are processed.
- Parameters:
fileset (
DataGroupSpec) – The set of datasets to be sliced.theslice (
Any, defaultslice(None)) – How to slice the array of files in the input datasets. We slice in key-order.
- Returns:
out – The reduced fileset with only the files specified by theslice left.
- Return type: