IterativeExecutor#
- class coffea.processor.IterativeExecutor(status: bool = True, unit: str = 'items', desc: str = 'Processing', compression: int | None = 1, function_name: str | None = None, workers: int = 1, retries: int = 3)[source]#
Bases:
ExecutorBaseExecute in one thread iteratively
- Parameters:
items (
list) – List of input argumentsfunction (
callable) – A function to be called on each input, which returns an accumulator instanceaccumulator (
Accumulatable) – An accumulator to collect the output of the functionstatus (
bool) – If true (default), enable progress barunit (
str) – Label of progress bar unitdesc (
str) – Label of progress bar descriptioncompression (
int, optional) – Ignored for iterative executorretries (
int, optional) – Number of retries for failed tasks (default: 3)
- Returns:
out –
(accumulator, 0)after all items have been merged.- Return type:
tuple(Accumulatable,int | BaseException)
Attributes Summary
Methods Summary
__call__(items, function, accumulator)Call self as a function.
Attributes Documentation
Methods Documentation
- __call__(items: Iterable, function: Callable, accumulator: Addable | MutableSet | MutableMapping)[source]#
Call self as a function.