value_accumulator
- class coffea.processor.value_accumulator(default_factory, initial=None)[source]
Bases:
AccumulatorABC
Holds a value of arbitrary type
- Parameters:
default_factory (callable) – a function that returns an instance of the desired identity value
initial (bool, optional) – an initial value, if the identity is not the desired initial value
Methods Summary
add
(other)Add another accumulator to this one in-place
identity
()Identity of the accumulator
Methods Documentation