snf_simulations.data.utils#
Utility functions for loading and processing data.
Module Contents#
Functions#
Parse an isotope name and return its element and mass number. |
|
Return the path to the bundled example .tbQ file. |
Data#
API#
- snf_simulations.data.utils._SECONDS_PER_YEAR#
31556926.0
- snf_simulations.data.utils._UNITS_TO_SECONDS#
None
- snf_simulations.data.utils._parse_isotope(isotope_name: str) tuple[str, int][source]#
Parse an isotope name and return its element and mass number.
- Parameters:
isotope_name – Name of the isotope to parse. Format should be ‘ElementMass’ (e.g. Ru106) or ‘MassElement’ (e.g. 106Ru).
- Returns:
The element symbol (case unchanged). mass_number: The mass number.
- Return type:
element