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

add(other)[source]

Add another accumulator to this one in-place

identity()[source]

Identity of the accumulator

A value such that any other value added to it will return the other value