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 a list of available reactors from the database. |
|
Load in antineutrino spectrum data from the IAEA. |
|
Load in isotope parameters from the database. |
|
Load in reactor isotope proportions from the database. |
|
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