TDCRPy 2.0.9__tar.gz → 2.1.0__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.

Potentially problematic release.


This version of TDCRPy might be problematic. Click here for more details.

Files changed (87) hide show
  1. {tdcrpy-2.0.9/TDCRPy.egg-info → tdcrpy-2.1.0}/PKG-INFO +1 -1
  2. {tdcrpy-2.0.9 → tdcrpy-2.1.0/TDCRPy.egg-info}/PKG-INFO +1 -1
  3. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/setup.py +1 -1
  4. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/TDCRPy.py +87 -85
  5. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/TDCR_model_lib.py +3 -5
  6. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/LICENCE.md +0 -0
  7. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/MANIFEST.in +0 -0
  8. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/README.md +0 -0
  9. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/TDCRPy.egg-info/SOURCES.txt +0 -0
  10. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/TDCRPy.egg-info/dependency_links.txt +0 -0
  11. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/TDCRPy.egg-info/requires.txt +0 -0
  12. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/TDCRPy.egg-info/top_level.txt +0 -0
  13. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/setup.cfg +0 -0
  14. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_C-14.txt +0 -0
  15. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Ca-45.txt +0 -0
  16. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Co-60.txt +0 -0
  17. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_H-3.txt +0 -0
  18. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Ni-63.txt +0 -0
  19. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Pm-147.txt +0 -0
  20. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Pu-241.txt +0 -0
  21. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_S-35.txt +0 -0
  22. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Sr-89.txt +0 -0
  23. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Sr-90.txt +0 -0
  24. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/Spectra_for_analytical_model/dep_spectrum_Tc-99.txt +0 -0
  25. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/E_depose.txt +0 -0
  26. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-beta-_1_200k.txt +0 -0
  27. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-beta-_2000_10000k.txt +0 -0
  28. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-beta-_200_2000k.txt +0 -0
  29. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-photon_1_200k.txt +0 -0
  30. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-photon_2000_10000k.txt +0 -0
  31. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_10ml-photon_200_2000k.txt +0 -0
  32. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-beta-_1_200k.txt +0 -0
  33. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-beta-_2000_10000k.txt +0 -0
  34. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-beta-_200_2000k.txt +0 -0
  35. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-photon_1_200k.txt +0 -0
  36. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-photon_2000_10000k.txt +0 -0
  37. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_13ml-photon_200_2000k.txt +0 -0
  38. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-beta-_1_200k.txt +0 -0
  39. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-beta-_2000_10000k.txt +0 -0
  40. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-beta-_200_2000k.txt +0 -0
  41. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_1_200k.txt +0 -0
  42. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_2000_10000k.txt +0 -0
  43. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_200_2000k.txt +0 -0
  44. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Micelle/2nmfaq01.csv +0 -0
  45. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Micelle/faq01.csv +0 -0
  46. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyAlpha_0.015.txt +0 -0
  47. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyAlpha_1.1e-05.txt +0 -0
  48. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyAlpha_1.2e-05.txt +0 -0
  49. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyAlpha_1.3e-05.txt +0 -0
  50. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyAlpha_1.4e-05.txt +0 -0
  51. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyAlpha_1.5e-05.txt +0 -0
  52. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyAlpha_1e-05.txt +0 -0
  53. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyAlpha_6e-06.txt +0 -0
  54. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyAlpha_7e-06.txt +0 -0
  55. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyAlpha_8e-06.txt +0 -0
  56. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyAlpha_9e-06.txt +0 -0
  57. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyElectron_0.006.txt +0 -0
  58. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyElectron_0.007.txt +0 -0
  59. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyElectron_0.008.txt +0 -0
  60. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyElectron_0.009.txt +0 -0
  61. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyElectron_0.01.txt +0 -0
  62. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyElectron_0.011.txt +0 -0
  63. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyElectron_0.012.txt +0 -0
  64. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyElectron_0.013.txt +0 -0
  65. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyElectron_0.014.txt +0 -0
  66. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/QuenchEnergyElectron_0.015.txt +0 -0
  67. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/TandataUG.txt +0 -0
  68. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/alpha_toulene.txt +0 -0
  69. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/inputVecteurAlpha.txt +0 -0
  70. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/Quenching/inputVecteurElectron.txt +0 -0
  71. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/TDCRPy1.py +0 -0
  72. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/TDCRoptimize.py +0 -0
  73. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/__init__.py +0 -0
  74. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/config.toml +0 -0
  75. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/decayData/All-nuclides_BetaShape.zip +0 -0
  76. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/decayData/All-nuclides_Ensdf.zip +0 -0
  77. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/decayData/All-nuclides_PenNuc.zip +0 -0
  78. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/decayData/atom-ENDF-VII0.zip +0 -0
  79. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/decayData/photo-ENDF.zip +0 -0
  80. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/docs/_build/html/genindex.html +0 -0
  81. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/docs/_build/html/index.html +0 -0
  82. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/docs/_build/html/search.html +0 -0
  83. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/docs/_build/html/source/modules.html +0 -0
  84. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/docs/_build/html/source/tdcrpy.html +0 -0
  85. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/test/__init__.py +0 -0
  86. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/test/test_tdcrpy.py +0 -0
  87. {tdcrpy-2.0.9 → tdcrpy-2.1.0}/tdcrpy/test2.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TDCRPy
3
- Version: 2.0.9
3
+ Version: 2.1.0
4
4
  Summary: TDCR model
5
5
  Home-page: https://pypi.org/project/TDCRPy/
6
6
  Author: RomainCoulon (Romain Coulon)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TDCRPy
3
- Version: 2.0.9
3
+ Version: 2.1.0
4
4
  Summary: TDCR model
5
5
  Home-page: https://pypi.org/project/TDCRPy/
6
6
  Author: RomainCoulon (Romain Coulon)
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
  import codecs
3
3
  import os
4
4
 
5
- VERSION = "2.0.9"
5
+ VERSION = "2.1.0"
6
6
 
7
7
  DESCRIPTION = "TDCR model"
8
8
 
@@ -1129,98 +1129,100 @@ def eff(TD, Rad, pmf_1, kB, V, N=10000, L=1, maxiter=20, xatol=1e-7, disp=False)
1129
1129
  return L0, L, eff_S, u_eff_S, eff_D, u_eff_D, eff_T, u_eff_T, eff_AB, u_eff_AB, eff_BC, u_eff_BC, eff_AC, u_eff_AC, eff_D2, u_eff_D2
1130
1130
 
1131
1131
 
1132
- # def effA(TD, Rad, pmf_1, kB, V, L=1, maxiter=20, xatol=1e-7, disp=False):
1133
- # """
1134
- # Caclulation of the efficiency of a TDCR system based on the model TDCRPy (analytical model).
1135
- # This function includes optimization procedures from scipy.
1132
+ def effA(TD, Rad, pmf_1, kB, V, L=1, maxiter=20, xatol=1e-7, disp=False):
1133
+ """
1134
+ Caclulation of the efficiency of a TDCR system based on the model TDCRPy (analytical model).
1135
+ This function includes optimization procedures from scipy.
1136
1136
 
1137
- # Parameters
1138
- # ----------
1139
- # TD : float or tuple
1140
- # measurements. If TD is float, then TD is the measured TDCR parameter. If TD is tuple, then TD must contain the global TDCR parameter followed by specific ones (T/B, T/AB, T/BC, T/AC)
1141
- # Rad : string
1142
- # List of radionuclides (eg. "H-3, Co-60").
1143
- # pmf_1 : string
1144
- # list of probability of each radionuclide (eg. "0.8, 0.2").
1145
- # kB : float
1146
- # Birks constant in cm/keV.
1147
- # V : float
1148
- # volume of the scintillator in ml.
1149
- # maxiter : interger, optional
1150
- # maximum number of iterations of the optimization procedures
1151
- # xatol : float
1152
- # convergence parameter of the Nelder Mead optimisation
1153
- # disp : Boolean
1154
- # to display detailed results of the procedure. Default is False.
1137
+ Parameters
1138
+ ----------
1139
+ TD : float or tuple
1140
+ measurements. If TD is float, then TD is the measured TDCR parameter. If TD is tuple, then TD must contain the global TDCR parameter followed by specific ones (T/B, T/AB, T/BC, T/AC)
1141
+ Rad : string
1142
+ List of radionuclides (eg. "H-3, Co-60").
1143
+ pmf_1 : string
1144
+ list of probability of each radionuclide (eg. "0.8, 0.2").
1145
+ kB : float
1146
+ Birks constant in cm/keV.
1147
+ V : float
1148
+ volume of the scintillator in ml.
1149
+ maxiter : interger, optional
1150
+ maximum number of iterations of the optimization procedures
1151
+ xatol : float
1152
+ convergence parameter of the Nelder Mead optimisation
1153
+ disp : Boolean
1154
+ to display detailed results of the procedure. Default is False.
1155
1155
 
1156
- # Returns
1157
- # -------
1158
- # L0 : float
1159
- # global free parameter.
1160
- # L : tuple
1161
- # free parameters (relevant for the asymetric model).
1162
- # eff_S : float
1163
- # counting efficiency of single events.
1164
- # u_eff_S : float
1165
- # standard uncertainty of eff_S.
1166
- # eff_D : float
1167
- # counting efficiency of double coincidences.
1168
- # u_eff_D : float
1169
- # standard uncertainty of eff_D.
1170
- # eff_T : float
1171
- # counting efficiency of triple coincidences.
1172
- # u_eff_T : float
1173
- # standard uncertainty of eff_T.
1174
- # eff_AB : float
1175
- # counting efficiency of coincidences AB.
1176
- # u_eff_AB : float
1177
- # standard uncertainty of eff_AB.
1178
- # eff_BC : float
1179
- # counting efficiency of coincidences BC.
1180
- # u_eff_BC : float
1181
- # standard uncertainty of eff_BC.
1182
- # eff_AC : float
1183
- # counting efficiency of coincidences AC.
1184
- # u_eff_AC : float
1185
- # standard uncertainty of eff_AC.
1186
- # eff_D : float
1187
- # counting efficiency of double coincidences in C/N configuation (not relevant).
1188
- # u_eff_D : float
1189
- # standard uncertainty of eff_D in C/N configuation (not relevant).
1156
+ Returns
1157
+ -------
1158
+ L0 : float
1159
+ global free parameter.
1160
+ L : tuple
1161
+ free parameters (relevant for the asymetric model).
1162
+ eff_S : float
1163
+ counting efficiency of single events.
1164
+ u_eff_S : float
1165
+ standard uncertainty of eff_S.
1166
+ eff_D : float
1167
+ counting efficiency of double coincidences.
1168
+ u_eff_D : float
1169
+ standard uncertainty of eff_D.
1170
+ eff_T : float
1171
+ counting efficiency of triple coincidences.
1172
+ u_eff_T : float
1173
+ standard uncertainty of eff_T.
1174
+ eff_AB : float
1175
+ counting efficiency of coincidences AB.
1176
+ u_eff_AB : float
1177
+ standard uncertainty of eff_AB.
1178
+ eff_BC : float
1179
+ counting efficiency of coincidences BC.
1180
+ u_eff_BC : float
1181
+ standard uncertainty of eff_BC.
1182
+ eff_AC : float
1183
+ counting efficiency of coincidences AC.
1184
+ u_eff_AC : float
1185
+ standard uncertainty of eff_AC.
1186
+ eff_D : float
1187
+ counting efficiency of double coincidences in C/N configuation (not relevant).
1188
+ u_eff_D : float
1189
+ standard uncertainty of eff_D in C/N configuation (not relevant).
1190
1190
 
1191
- # """
1192
- # if isinstance(TD, (tuple, list)):
1193
- # symm = False
1194
- # else:
1195
- # symm = True
1191
+ """
1192
+ if isinstance(TD, (tuple, list)):
1193
+ symm = False
1194
+ else:
1195
+ symm = True
1196
1196
 
1197
- # if symm: r=opt.minimize_scalar(tl.modelAnalytical, args=(TD, TD, TD, TD, Rad, kB, V, "res", True, 1e3), method='bounded', bounds = (0.1, 5), options={'disp': disp, 'maxiter':maxiter})
1198
- # else: r=opt.minimize_scalar(tl.modelAnalytical, args=(TD[0], TD[1], TD[2], TD[3], Rad, kB, V, "res", True, 1e3), method='bounded', bounds = (0.1, 5), options={'disp': disp, 'maxiter':maxiter})
1199
- # L0=r.x
1200
- # L=(L0, L0, L0)
1201
- # print(f"global free parameter = {L0} keV-1")
1197
+ if symm: r=opt.minimize_scalar(tl.modelAnalytical, args=(TD, TD, TD, TD, Rad, kB, V, "res", 1e3), method='bounded', bounds = (0.1, 5), options={'disp': disp, 'maxiter':maxiter})
1198
+ else: r=opt.minimize_scalar(tl.modelAnalytical, args=(TD[0], TD[1], TD[2], TD[3], Rad, kB, V, "res", 1e3), method='bounded', bounds = (0.1, 5), options={'disp': disp, 'maxiter':maxiter})
1199
+ L0=r.x
1200
+ L=(L0, L0, L0)
1201
+ print(f"global free parameter = {L0} keV-1")
1202
1202
 
1203
- # if not symm:
1204
- # r=opt.minimize(tl.modelAnalytical, L, args=(TD[0], TD[1], TD[2], TD[3], Rad, kB, V, "res", True, 1e3), method='nelder-mead',options={'xatol': xatol, 'disp': disp, 'maxiter':maxiter})
1205
- # L=r.x
1206
- # print(f"free parameters = {L} keV-1")
1203
+ if not symm:
1204
+ r=opt.minimize(tl.modelAnalytical, L, args=(TD[0], TD[1], TD[2], TD[3], Rad, kB, V, "res", 1e3), method='nelder-mead',options={'xatol': xatol, 'disp': disp, 'maxiter':maxiter})
1205
+ L=r.x
1206
+ print(f"free parameters = {L} keV-1")
1207
1207
 
1208
- # if symm: out=tl.modelAnalytical(L, TD, TD, TD, TD, Rad, kB, V, "eff", True, 1e3)
1209
- # else: out=tl.modelAnalytical(L, TD[0], TD[1], TD[2], TD[3], Rad, kB, V, "eff", True, 1e3)
1210
- # eff_S = out[0]
1211
- # u_eff_S = out[1]
1212
- # eff_D = out[2]
1213
- # u_eff_D = out[3]
1214
- # eff_T = out[4]
1215
- # u_eff_T = out[5]
1216
- # eff_AB = out[6]
1217
- # u_eff_AB = out[7]
1218
- # eff_BC = out[8]
1219
- # u_eff_BC = out[9]
1220
- # eff_AC = out[10]
1221
- # u_eff_AC = out[11]
1208
+ if symm: out=tl.modelAnalytical(L, TD, TD, TD, TD, Rad, kB, V, "eff", 1e3)
1209
+ else: out=tl.modelAnalytical(L, TD[0], TD[1], TD[2], TD[3], Rad, kB, V, "eff", 1e3)
1210
+ eff_S = out[0]
1211
+ eff_D = out[1]
1212
+ eff_T = out[2]
1213
+ # u_eff_S = out[1]
1214
+ # eff_D = out[2]
1215
+ # u_eff_D = out[3]
1216
+ # eff_T = out[4]
1217
+ # u_eff_T = out[5]
1218
+ # eff_AB = out[6]
1219
+ # u_eff_AB = out[7]
1220
+ # eff_BC = out[8]
1221
+ # u_eff_BC = out[9]
1222
+ # eff_AC = out[10]
1223
+ # u_eff_AC = out[11]
1222
1224
 
1223
- # return L0, L, eff_S, u_eff_S, eff_D, u_eff_D, eff_T, u_eff_T, eff_AB, u_eff_AB, eff_BC, u_eff_BC, eff_AC, u_eff_AC
1225
+ return L0, L, eff_S, eff_D, eff_T #, u_eff_T, eff_AB, u_eff_AB, eff_BC, u_eff_BC, eff_AC, u_eff_AC, u_eff_S, u_eff_D,
1224
1226
 
1225
1227
 
1226
1228
 
@@ -1277,7 +1277,7 @@ def Em_e(Ei, Ed, kB, nE, Et = Einterp_e*1e3, kB_vec = kB_e):
1277
1277
  """
1278
1278
  if Ed <= Et or Ei != Ed:
1279
1279
  # run the accurate quenching model
1280
- r = E_quench_e(Ei,Ed,kB,nE)
1280
+ r = E_quench_e(Ei,Ed,kB,int(nE))
1281
1281
  else:
1282
1282
  # run interpolation
1283
1283
  r = run_interpolate(kB_vec, kB , Ei_electron, Em_electron, Ed)
@@ -2648,7 +2648,7 @@ def relaxation_atom_ph(lacune,element,v):
2648
2648
 
2649
2649
 
2650
2650
 
2651
- def modelAnalytical(L,TD,TAB,TBC,TAC,rad,kB,V,mode,symm,ne):
2651
+ def modelAnalytical(L,TD,TAB,TBC,TAC,rad,kB,V,mode,ne):
2652
2652
  """
2653
2653
  TDCR analytical model that is used for pure beta emitting radionuclides
2654
2654
 
@@ -2672,8 +2672,6 @@ def modelAnalytical(L,TD,TAB,TBC,TAC,rad,kB,V,mode,symm,ne):
2672
2672
  volume of the scintillator in ml. run only for 10 ml
2673
2673
  mode : string
2674
2674
  "res" to return the residual, "eff" to return efficiencies.
2675
- symm : boolean
2676
- "True" for symetrical model, "False" for symetrical model.
2677
2675
  nE : integer
2678
2676
  Number of bins for the quenching function.
2679
2677
 
@@ -2699,7 +2697,7 @@ def modelAnalytical(L,TD,TAB,TBC,TAC,rad,kB,V,mode,symm,ne):
2699
2697
  em[i] = Em_e(ei*1e3,ei*1e3,kB*1e3,ne)*1e-3
2700
2698
 
2701
2699
 
2702
- if symm:
2700
+ if type(L)==float or isinstance(L, np.float64):
2703
2701
  eff_S = sum(p*(1-np.exp(-L*em/3)))
2704
2702
  eff_T = sum(p*(1-np.exp(-L*em/3))**3)
2705
2703
  eff_D = sum(p*(3*(1-np.exp(-L*em/3))**2-2*(1-np.exp(-L*em/3))**3))
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