TDCRPy 2.19.0__tar.gz → 2.19.2__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.
Files changed (91) hide show
  1. {tdcrpy-2.19.0/TDCRPy.egg-info → tdcrpy-2.19.2}/PKG-INFO +2 -1
  2. {tdcrpy-2.19.0 → tdcrpy-2.19.2/TDCRPy.egg-info}/PKG-INFO +2 -1
  3. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/TDCRPy.egg-info/requires.txt +1 -0
  4. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/setup.py +2 -2
  5. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/TDCRPy.py +4 -1
  6. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/TDCR_model_lib.py +14 -5
  7. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/LICENCE.md +0 -0
  8. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/MANIFEST.in +0 -0
  9. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/README.md +0 -0
  10. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/TDCRPy.egg-info/SOURCES.txt +0 -0
  11. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/TDCRPy.egg-info/dependency_links.txt +0 -0
  12. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/TDCRPy.egg-info/top_level.txt +0 -0
  13. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/setup.cfg +0 -0
  14. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_C-14.txt +0 -0
  15. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Ca-45.txt +0 -0
  16. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Co-60.txt +0 -0
  17. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_H-3.txt +0 -0
  18. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Ni-63.txt +0 -0
  19. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_P-32.txt +0 -0
  20. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Pm-147.txt +0 -0
  21. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Pu-241.txt +0 -0
  22. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_S-35.txt +0 -0
  23. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Sr-89.txt +0 -0
  24. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Sr-90.txt +0 -0
  25. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Tc-99.txt +0 -0
  26. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Zr-93.txt +0 -0
  27. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/E_depose.txt +0 -0
  28. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-beta-_1_200k.txt +0 -0
  29. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-beta-_2000_10000k.txt +0 -0
  30. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-beta-_200_2000k.txt +0 -0
  31. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-photon_1_200k.txt +0 -0
  32. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-photon_2000_10000k.txt +0 -0
  33. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-photon_200_2000k.txt +0 -0
  34. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-beta-_1_200k.txt +0 -0
  35. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-beta-_2000_10000k.txt +0 -0
  36. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-beta-_200_2000k.txt +0 -0
  37. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-photon_1_200k.txt +0 -0
  38. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-photon_2000_10000k.txt +0 -0
  39. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-photon_200_2000k.txt +0 -0
  40. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-beta-_1_200k.txt +0 -0
  41. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-beta-_2000_10000k.txt +0 -0
  42. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-beta-_200_2000k.txt +0 -0
  43. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_1_200k.txt +0 -0
  44. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_2000_10000k.txt +0 -0
  45. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_200_2000k.txt +0 -0
  46. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Micelle/2nmfaq01.csv +0 -0
  47. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Micelle/faq01.csv +0 -0
  48. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyAlpha_0.015.txt +0 -0
  49. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyAlpha_1.1e-05.txt +0 -0
  50. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyAlpha_1.2e-05.txt +0 -0
  51. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyAlpha_1.3e-05.txt +0 -0
  52. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyAlpha_1.4e-05.txt +0 -0
  53. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyAlpha_1.5e-05.txt +0 -0
  54. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyAlpha_1e-05.txt +0 -0
  55. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyAlpha_6e-06.txt +0 -0
  56. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyAlpha_7e-06.txt +0 -0
  57. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyAlpha_8e-06.txt +0 -0
  58. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyAlpha_9e-06.txt +0 -0
  59. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyElectron_0.006.txt +0 -0
  60. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyElectron_0.007.txt +0 -0
  61. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyElectron_0.008.txt +0 -0
  62. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyElectron_0.009.txt +0 -0
  63. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyElectron_0.01.txt +0 -0
  64. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyElectron_0.011.txt +0 -0
  65. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyElectron_0.012.txt +0 -0
  66. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyElectron_0.013.txt +0 -0
  67. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyElectron_0.014.txt +0 -0
  68. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/QuenchEnergyElectron_0.015.txt +0 -0
  69. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/TandataUG.txt +0 -0
  70. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/alpha_toulene.txt +0 -0
  71. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/inputVecteurAlpha.txt +0 -0
  72. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/Quenching/inputVecteurElectron.txt +0 -0
  73. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/TDCRPy1.py +0 -0
  74. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/TDCRoptimize.py +0 -0
  75. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/__init__.py +0 -0
  76. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/config.toml +0 -0
  77. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/configDefault.toml +0 -0
  78. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/decayData/All-nuclides_BetaShape.zip +0 -0
  79. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/decayData/All-nuclides_Ensdf.zip +0 -0
  80. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/decayData/All-nuclides_PenNuc.zip +0 -0
  81. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/decayData/atom-ENDF-VII0.zip +0 -0
  82. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/decayData/photo-ENDF.zip +0 -0
  83. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/docs/_build/html/genindex.html +0 -0
  84. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/docs/_build/html/index.html +0 -0
  85. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/docs/_build/html/search.html +0 -0
  86. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/docs/_build/html/source/modules.html +0 -0
  87. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/docs/_build/html/source/tdcrpy.html +0 -0
  88. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/test/__init__.py +0 -0
  89. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/test/test_tdcrpy.py +0 -0
  90. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/test2.py +0 -0
  91. {tdcrpy-2.19.0 → tdcrpy-2.19.2}/tdcrpy/test_randomGen.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: TDCRPy
3
- Version: 2.19.0
3
+ Version: 2.19.2
4
4
  Summary: TDCR model
5
5
  Home-page: https://pypi.org/project/TDCRPy/
6
6
  Author: RomainCoulon (Romain Coulon)
@@ -27,6 +27,7 @@ Requires-Dist: scipy
27
27
  Requires-Dist: configparser
28
28
  Requires-Dist: importlib.resources
29
29
  Requires-Dist: matplotlib
30
+ Requires-Dist: numba
30
31
  Dynamic: author
31
32
  Dynamic: author-email
32
33
  Dynamic: classifier
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: TDCRPy
3
- Version: 2.19.0
3
+ Version: 2.19.2
4
4
  Summary: TDCR model
5
5
  Home-page: https://pypi.org/project/TDCRPy/
6
6
  Author: RomainCoulon (Romain Coulon)
@@ -27,6 +27,7 @@ Requires-Dist: scipy
27
27
  Requires-Dist: configparser
28
28
  Requires-Dist: importlib.resources
29
29
  Requires-Dist: matplotlib
30
+ Requires-Dist: numba
30
31
  Dynamic: author
31
32
  Dynamic: author-email
32
33
  Dynamic: classifier
@@ -5,3 +5,4 @@ scipy
5
5
  configparser
6
6
  importlib.resources
7
7
  matplotlib
8
+ numba
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
  import codecs
3
3
  import os
4
4
 
5
- VERSION = "2.19.0"
5
+ VERSION = "2.19.2"
6
6
 
7
7
  DESCRIPTION = "TDCR model"
8
8
 
@@ -26,7 +26,7 @@ setup(
26
26
  project_urls={'Documentation': 'https://github.com/RomainCoulon/TDCRPy/',},
27
27
  # packages = find_packages(exclude=["tdcrpy.EfficiencyProfils","tdcrpy.decay","tdcrpy.Activity_TDCR"], include=["tdcrpy.TDCR_model_lib","tdcrpy.TDCRPy", "tdcrpy.test.test_tdcrpy"]),
28
28
  packages = find_packages(),
29
- install_requires = ["numpy","tqdm","setuptools","scipy","configparser","importlib.resources","matplotlib"],
29
+ install_requires = ["numpy","tqdm","setuptools","scipy","configparser","importlib.resources","matplotlib","numba"],
30
30
  python_requires='>=3.11',
31
31
  keywords = ["Python","TDCR","Monte-Carlo","radionuclide","scintillation","counting"],
32
32
  classifiers=[
@@ -288,6 +288,7 @@ def TDCRPy(L, Rad, pmf_1, N, kB, V, mode="eff", Display=False, barp=False, Smode
288
288
  if fullMC:
289
289
  efficiency0_S, efficiency0_D, efficiency0_T, efficiency0_AB, efficiency0_BC, efficiency0_AC, efficiency0_D2 = tl.detectProbabilitiesMC(L, e_quenching, e_quenching2, t1, evenement, extDT, measTime)
290
290
  else:
291
+ print(e_quenching)
291
292
  efficiency0_S, efficiency0_D, efficiency0_T, efficiency0_AB, efficiency0_BC, efficiency0_AC, efficiency0_D2 = tl.detectProbabilities(L, e_quenching, e_quenching2, t1, evenement, extDT, measTime)
292
293
 
293
294
  efficiency_S.append(efficiency0_S)
@@ -1287,7 +1288,7 @@ def effA(TD, Rad, pmf_1, kB, V, L=1, maxiter=20, xatol=1e-7, disp=False, Lbounds
1287
1288
  # plt.show()
1288
1289
 
1289
1290
 
1290
- # L = 1
1291
+ # L = 0.1
1291
1292
  # # L = (1.1, 1.05, 1.15)
1292
1293
  # # TD = 0.977667386529166
1293
1294
  # # TD = (0.9767359812638453, 0.9925429293804757, 0.991829757077315, 0.9919970813639295) # source 1
@@ -1300,7 +1301,9 @@ def effA(TD, Rad, pmf_1, kB, V, L=1, maxiter=20, xatol=1e-7, disp=False, Lbounds
1300
1301
  # kB =1.4e-5
1301
1302
  # V = 16
1302
1303
  # mode = "eff"
1304
+ # tl.modifyMicCorr(True)
1303
1305
 
1306
+ # out = TDCRPy(L, Rad, "1", N, kB, V, "eff", barp=True)
1304
1307
 
1305
1308
  # # # out = TDCRPy(L, Rad, pmf_1, N, kB, V, Display = False, record = True, readRecHist = False)
1306
1309
  # # # print("result", out)
@@ -1862,7 +1862,10 @@ def pure_mc_efficient_energy_numba(E, *, r_d_nm=diam_micelle, f_w=fAq, tracer_ty
1862
1862
  E in keV
1863
1863
  """
1864
1864
  if E <= 0:
1865
- return 0.0, 0.0, np.zeros(num_samples)
1865
+ if num_samples==1:
1866
+ return 0.0
1867
+ else:
1868
+ return 0.0, 0.0, np.zeros(num_samples)
1866
1869
 
1867
1870
  if f_w > 1.0:
1868
1871
  f_w = f_w / 100.0
@@ -1870,9 +1873,15 @@ def pure_mc_efficient_energy_numba(E, *, r_d_nm=diam_micelle, f_w=fAq, tracer_ty
1870
1873
 
1871
1874
  if f_w == 0.0:
1872
1875
  arr = np.full(num_samples, E)
1873
- return E, 0.0, arr
1876
+ if num_samples==1:
1877
+ return E
1878
+ else:
1879
+ return E, 0.0, arr
1874
1880
  if f_w == 1.0:
1875
- return 0.0, 0.0, np.zeros(num_samples)
1881
+ if num_samples==1:
1882
+ return 0.0
1883
+ else:
1884
+ return 0.0, 0.0, np.zeros(num_samples)
1876
1885
 
1877
1886
  is_hydro = (tracer_type == "hydrophilic")
1878
1887
 
@@ -1888,8 +1897,8 @@ def pure_mc_efficient_energy_numba(E, *, r_d_nm=diam_micelle, f_w=fAq, tracer_ty
1888
1897
 
1889
1898
  # out0 = micelleLoss(50)*50
1890
1899
  # out1 = pure_mc_efficient_energy_numba(50, tracer_type = "lipophilic")
1891
- # out = pure_mc_efficient_energy_numba(50, tracer_type = "hydrophilic")
1892
- # print(out0, out1, out)
1900
+ # out = pure_mc_efficient_energy_numba(0, tracer_type = "hydrophilic")
1901
+ # print(out)
1893
1902
 
1894
1903
 
1895
1904
  #============================================================================================
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