TDCRPy 2.20.2__tar.gz → 2.20.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tdcrpy-2.20.2/TDCRPy.egg-info → tdcrpy-2.20.3}/PKG-INFO +1 -1
- {tdcrpy-2.20.2 → tdcrpy-2.20.3/TDCRPy.egg-info}/PKG-INFO +1 -1
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/setup.py +1 -1
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/TDCR_model_lib.py +12 -1
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/LICENCE.md +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/MANIFEST.in +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/README.md +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/TDCRPy.egg-info/SOURCES.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/TDCRPy.egg-info/dependency_links.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/TDCRPy.egg-info/requires.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/TDCRPy.egg-info/top_level.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/setup.cfg +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_C-14.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Ca-45.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Co-60.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_H-3.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Ni-63.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_P-32.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Pm-147.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Pu-241.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_S-35.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Sr-89.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Sr-90.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Tc-99.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Zr-93.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/E_depose.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-beta-_1_200k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-beta-_2000_10000k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-beta-_200_2000k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-photon_1_200k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-photon_2000_10000k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-photon_200_2000k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-beta-_1_200k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-beta-_2000_10000k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-beta-_200_2000k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-photon_1_200k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-photon_2000_10000k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-photon_200_2000k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-beta-_1_200k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-beta-_2000_10000k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-beta-_200_2000k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_1_200k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_2000_10000k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_200_2000k.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Micelle/2nmfaq01.csv +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Micelle/faq01.csv +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyAlpha_0.015.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyAlpha_1.1e-05.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyAlpha_1.2e-05.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyAlpha_1.3e-05.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyAlpha_1.4e-05.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyAlpha_1.5e-05.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyAlpha_1e-05.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyAlpha_6e-06.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyAlpha_7e-06.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyAlpha_8e-06.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyAlpha_9e-06.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyElectron_0.006.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyElectron_0.007.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyElectron_0.008.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyElectron_0.009.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyElectron_0.01.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyElectron_0.011.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyElectron_0.012.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyElectron_0.013.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyElectron_0.014.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/QuenchEnergyElectron_0.015.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/TandataUG.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/alpha_toulene.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/inputVecteurAlpha.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/Quenching/inputVecteurElectron.txt +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/TDCRPy.py +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/TDCRPy1.py +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/TDCRPy_0.py +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/TDCR_model_lib_0.py +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/TDCRoptimize_0.py +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/__init__.py +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/config.toml +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/configDefault.toml +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/decayData/All-nuclides_BetaShape.zip +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/decayData/All-nuclides_Ensdf.zip +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/decayData/All-nuclides_PenNuc.zip +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/decayData/atom-ENDF-VII0.zip +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/decayData/photo-ENDF.zip +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/docs/_build/html/genindex.html +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/docs/_build/html/index.html +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/docs/_build/html/search.html +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/docs/_build/html/source/modules.html +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/docs/_build/html/source/tdcrpy.html +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/test/__init__.py +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/test/test_tdcrpy.py +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/test2.py +0 -0
- {tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/test_randomGen.py +0 -0
|
@@ -367,14 +367,20 @@ def calculate_lsc_mixture_properties(cocktail_name, aqueous_mass_fraction, solva
|
|
|
367
367
|
"""
|
|
368
368
|
======= CONFIGURATION I/O (Safe Implementation) =======
|
|
369
369
|
"""
|
|
370
|
+
_CONFIG_CACHED = False
|
|
370
371
|
|
|
371
372
|
def get_config_path():
|
|
372
373
|
return files('tdcrpy').joinpath('config.toml')
|
|
373
374
|
|
|
374
375
|
def read_config_object():
|
|
375
|
-
global config
|
|
376
|
+
global config, _CONFIG_CACHED
|
|
377
|
+
# Return immediately if already cached in memory
|
|
378
|
+
if _CONFIG_CACHED:
|
|
379
|
+
return
|
|
380
|
+
|
|
376
381
|
with importlib.resources.as_file(get_config_path()) as data_path:
|
|
377
382
|
config.read(data_path)
|
|
383
|
+
_CONFIG_CACHED = True
|
|
378
384
|
|
|
379
385
|
def save_config_object():
|
|
380
386
|
with importlib.resources.as_file(get_config_path()) as data_path:
|
|
@@ -382,19 +388,24 @@ def save_config_object():
|
|
|
382
388
|
config.write(configfile)
|
|
383
389
|
|
|
384
390
|
def update_config_value(key, value, section="Inputs"):
|
|
391
|
+
global _CONFIG_CACHED
|
|
385
392
|
read_config_object()
|
|
386
393
|
if section not in config:
|
|
387
394
|
config.add_section(section)
|
|
388
395
|
config[section][key] = str(value)
|
|
389
396
|
save_config_object()
|
|
397
|
+
# Invalidate cache so next read fetches fresh data, if needed
|
|
398
|
+
_CONFIG_CACHED = False
|
|
390
399
|
|
|
391
400
|
def update_config_batch(updates_dict, section="Inputs"):
|
|
401
|
+
global _CONFIG_CACHED
|
|
392
402
|
read_config_object()
|
|
393
403
|
if section not in config:
|
|
394
404
|
config.add_section(section)
|
|
395
405
|
for key, value in updates_dict.items():
|
|
396
406
|
config[section][key] = str(value)
|
|
397
407
|
save_config_object()
|
|
408
|
+
_CONFIG_CACHED = False
|
|
398
409
|
|
|
399
410
|
# --- READING FUNCTIONS ---
|
|
400
411
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_H-3.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-beta-_1_200k.txt
RENAMED
|
File without changes
|
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-beta-_200_2000k.txt
RENAMED
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-photon_1_200k.txt
RENAMED
|
File without changes
|
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-photon_200_2000k.txt
RENAMED
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-beta-_1_200k.txt
RENAMED
|
File without changes
|
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-beta-_200_2000k.txt
RENAMED
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-photon_1_200k.txt
RENAMED
|
File without changes
|
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-photon_200_2000k.txt
RENAMED
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-beta-_1_200k.txt
RENAMED
|
File without changes
|
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-beta-_200_2000k.txt
RENAMED
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_1_200k.txt
RENAMED
|
File without changes
|
|
File without changes
|
{tdcrpy-2.20.2 → tdcrpy-2.20.3}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_200_2000k.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|