nubase_system_of_units_sgl

class reactions.nubase_system_of_units_sgl

Bases: object

Object to serve as an interface with the NuBase system of units. This object is declared as a singleton. Any call from a NuBase element to an accessor will use the system of units defined in this class.

Methods Summary

get_energy_units

Get the current units of energy for the masses and widths of NuBase elements

get_time_units

Get the current units of time for the masses and widths of NuBase elements

set_energy_units(units)

Set the units of energy for the masses and widths of NuBase elements

set_time_units(units)

Set the units of time for the masses and widths of NuBase elements

Methods Documentation

get_energy_units()

Get the current units of energy for the masses and widths of NuBase elements

Returns

Units of energy

Return type

str

get_time_units()

Get the current units of time for the masses and widths of NuBase elements

Returns

Units of time

Return type

str

set_energy_units(units)

Set the units of energy for the masses and widths of NuBase elements

Parameters

str – Units of energy to use.

Raises

reactions.ValueError – If the provided units are unknown

set_time_units(units)

Set the units of time for the masses and widths of NuBase elements

Parameters

str – Units of time to use.

Raises

reactions.ValueError – If the provided units are unknown