snf_simulations.data.utils#

Utility functions for loading and processing data.

Module Contents#

Functions#

_parse_isotope

Parse an isotope name and return its element and mass number.

get_example_tbq_path

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

snf_simulations.data.utils.get_example_tbq_path() pathlib.Path[source]#

Return the path to the bundled example .tbQ file.