max_chunks
- coffea.dataset_tools.max_chunks(fileset: Dict[str, DatasetSpec], maxchunks: int | None = None) Dict[str, DatasetSpec][source]
Modify the input dataset so that only the first “maxchunks” chunks of each file will be processed.
- Parameters:
fileset (FilesetSpec) – The set of datasets reduce to max-chunks row-ranges.
maxchunks (int | None, default None) – How many chunks to keep for each file.
- Returns:
out – The reduced fileset with only the first maxchunks event ranges left in.
- Return type:
FilesetSpec