hist.tag module#
- class hist.tag.Slicer#
Bases:
object
This is a simple class to make slicing inside dictionaries simpler. This is how it should be used:
s = bh.tag.Slicer()
h[{0: s[::bh.rebin(2)]}] # rebin axis 0 by two
- class hist.tag.rebin(factor: int | None = None, *, groups: Sequence[int] | None = None)#
Bases:
object
- factor#
- group_mapping(axis: PlottableAxis) Sequence[int] #
- groups#
- hist.tag.sum(iterable, /, start=0)#
Return the sum of a ‘start’ value (default: 0) plus an iterable of numbers
When the iterable is empty, return the start value. This function is intended specifically for use with numeric values and may reject non-numeric types.