pwassist.io.binning.MassBin#

class pwassist.io.binning.MassBin(low, high)[source]#

Bases: object

Parameters:
  • low (float)

  • high (float)

property center: float#

Return the center of the mass bin.

classmethod from_tuple(mass_tuple)[source]#

Create a MassBin from a tuple of (low, high).

Return type:

MassBin

Parameters:

mass_tuple (tuple[float, float])

high: float#
low: float#
property width: float#

Return the width of the mass bin.