hist.tag module#

class hist.tag.Locator(offset: int = 0)#

Bases: object

NAME = ''#
offset#
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.at(value: int)#

Bases: object

value#
class hist.tag.loc(value: str | float, offset: int = 0)#

Bases: Locator

value#
class hist.tag.rebin(value: int)#

Bases: object

factor#
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.