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. :param fileset: The set of datasets reduce to max-chunks row-ranges. :type fileset: FilesetSpec :param maxchunks: How many chunks to keep for each file. :type maxchunks: int | None, default None

Returns:

out – The reduced fileset with only the first maxchunks event ranges left in.

Return type:

FilesetSpec