nubase_system_of_units_sgl
- class reactions.nubase_system_of_units_sgl
Bases:
objectObject 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 the current units of energy for the masses and widths of NuBase elements
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
- get_time_units()
Get the current units of time for the masses and widths of NuBase elements
- Returns
Units of time
- Return type
- 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