snf_simulations.data#

Data loading module for antineutrino spectra calculations.

Provides functions to load isotope data, reactor fuel composition data, and antineutrino spectrum data from the built-in database files.

Package Contents#

Functions#

get_reactors

Get a list of available reactors from the database.

load_antineutrino_data

Load in antineutrino spectrum data from the IAEA.

load_isotope_data

Load in isotope parameters from the database.

load_reactor_data

Load in reactor isotope proportions from the database.

load_spectrum

Load in antineutrino spectrum data from text files.

API#

snf_simulations.data.get_reactors() list[str][source]#

Get a list of available reactors from the database.

Returns:

List of reactor names.

snf_simulations.data.load_antineutrino_data(isotopes: list[str]) dict[str, numpy.ndarray][source]#

Load in antineutrino spectrum data from the IAEA.

Parameters:

isotopes – List of isotope names to load data for.

Returns:

Dictionary of arrays containing spectrum data for each isotope. Data arrays contain energy, flux, and uncertainty.

snf_simulations.data.load_isotope_data(isotopes: list[str] | None = None) tuple[dict[str, int], dict[str, float]][source]#

Load in isotope parameters from the database.

Parameters:

isotopes – List of isotope names to load data for. If None, load data for all isotopes in the database.

Returns:

  • molar_masses: Dictionary of molar masses (g/mol) for each isotope.

  • half_lives: Dictionary of half-lives (years) for each isotope.

Return type:

Tuple of two dictionaries

snf_simulations.data.load_reactor_data(reactor: str) dict[str, float][source]#

Load in reactor isotope proportions from the database.

Parameters:

reactor – Name of the reactor to load data for.

Returns:

Dictionary of isotope proportions in the fuel, e.g. {“Sr90”: 5.356e-4, “Y90”: 1.3922e-7, …}.

snf_simulations.data.load_spectrum(isotope_name: str) numpy.ndarray[source]#

Load in antineutrino spectrum data from text files.

Parameters:

isotope_name – Name of the isotope to load data for.

Returns:

Array containing energy, flux, and uncertainty.