snf_simulations.data.mendeleev#

Module for loading isotope data from the mendeleev package.

Module Contents#

Classes#

IsotopeProperties

Class to represent the properties of an isotope.

Functions#

_get_isotope_properties_cached

Return cached isotope properties loaded from mendeleev.

get_isotope_properties

Get the mass, half-life and decay modes for the given isotope.

API#

class snf_simulations.data.mendeleev.IsotopeProperties[source]#

Bases: typing.TypedDict

Class to represent the properties of an isotope.

decay_modes: list[str]#

None

half_life: float#

None

molar_mass: float#

None

snf_simulations.data.mendeleev._get_isotope_properties_cached(isotope_name: str) snf_simulations.data.mendeleev.IsotopeProperties[source]#

Return cached isotope properties loaded from mendeleev.

snf_simulations.data.mendeleev.get_isotope_properties(isotope_name: str) snf_simulations.data.mendeleev.IsotopeProperties[source]#

Get the mass, half-life and decay modes for the given isotope.

Uses data from the mendeleev package.

Parameters:

isotope_name – Name of the isotope. Format should be ‘ElementMass’ (e.g. Ru106) or ‘MassElement’ (e.g. 106Ru).

Returns:

  • the molar mass of the isotope (in g/mol)

  • the half-life of the isotope (in years)

  • the decay modes of the isotope (as a list of strings)

Return type:

Dictionary containing