set_accumulator

class coffea.processor.set_accumulator[source]

Bases: set, AccumulatorABC

A set with accumulator semantics

See set for further info

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

Note

This replaces set.add behavior, unfortunately. A workaround is to use set.update, e.g. a.update({'val'})

identity()[source]

Identity of the accumulator

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