pwassist.io.binning.EnergyBin#

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

Bases: object

Parameters:
  • low (float)

  • high (float)

property center: float#

Return the center of the energy bin.

classmethod from_tuple(energy_tuple)[source]#

Create an EnergyBin from a tuple of (low, high).

Return type:

EnergyBin

Parameters:

energy_tuple (tuple[float, float])

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

Return the width of the energy bin.