TDCRPy 1.12.5__py3-none-any.whl → 1.12.8__py3-none-any.whl

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TDCRPy
3
- Version: 1.12.5
3
+ Version: 1.12.8
4
4
  Summary: TDCR model
5
5
  Home-page: https://pypi.org/project/TDCRPy/
6
6
  Author: RomainCoulon (Romain Coulon)
@@ -1,9 +1,9 @@
1
- tdcrpy/TDCRPy.py,sha256=-HhkBRjAU04jTMroHgSQ3yfI_IpYTrK35cPo67bV1RI,53904
1
+ tdcrpy/TDCRPy.py,sha256=EQt-DPGO1ffJs_8TNSOUxR--1W9XukACawo7DgUNne8,53989
2
2
  tdcrpy/TDCRPy1.py,sha256=QTBZh5B5JWnGB0BQfD-cFmwA9W080OD4sG-aj50-ejo,38106
3
- tdcrpy/TDCR_model_lib.py,sha256=x06qjdfJpo24iRj4EWXjGEOb2CSrExbdAL0nMlp8Bro,106017
3
+ tdcrpy/TDCR_model_lib.py,sha256=Rgc0JpRKGN79C4IhsGxlCi185xxIrKfRCF8oLRAqH44,106606
4
4
  tdcrpy/TDCRoptimize.py,sha256=c2XIGveeLdVYYek4Rg6dygMvVA2xIrIkMb3L-_jUucM,6496
5
5
  tdcrpy/__init__.py,sha256=vQslGLsoZPIceaitnSHOqN6lUdjEyJ3YhfJ6tYdXt-s,127
6
- tdcrpy/config.toml,sha256=rHuuM520HZquGrEd8LAVUdvnzZGtk90pigudy-MXnm8,1389
6
+ tdcrpy/config.toml,sha256=0SXcv120NwqquXLw4w3P9d4uG0pctU7EvF0mzGarfGw,1427
7
7
  tdcrpy/test2.py,sha256=poLLXJyIaCeqh1VSkwgbi-udvY7lQjxz_YStKjJXGhU,501
8
8
  tdcrpy/EfficiencyCurves/Ag-108/EffD_Ag-108_[1]_1e-05.txt,sha256=OUoMuqPTw3fXLu5qaHUFN2iW0dPJ9cRyh99a6mUcEus,43
9
9
  tdcrpy/EfficiencyCurves/Ag-108/EffS_Ag-108_[1]_1e-05.txt,sha256=hojCq_MFAw8ONjoDmQfeE9gCXISwhScgAk-N0Pjbg00,45
@@ -1043,7 +1043,7 @@ tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_1_200k.txt,sha256=kxDaTMq
1043
1043
  tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_2000_10000k.txt,sha256=oKl_dTNoQCPAliK1erzvtO1PHBCRItAZvY0wkBa_qN4,16872466
1044
1044
  tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_200_2000k.txt,sha256=B1f_TWs6wzreI4mbYYJDOkm2aDik49w4yQ96tR7Awe0,18978766
1045
1045
  tdcrpy/Micelle/2nmfaq01.csv,sha256=nLnOq8HyJGJSHeJ91-ZLRUZPgmaogiHcQk1SicHYaqE,1340
1046
- tdcrpy/Micelle/faq01.csv,sha256=r_tRhRp8ePqnBxlA6dgZadzR2M7i785rzPoD43wiFSU,7571
1046
+ tdcrpy/Micelle/faq01.csv,sha256=pAERSkEojSzlJW_Lufp_UmCLDP2Xj0d0gI6EgMveC_s,7573
1047
1047
  tdcrpy/Quenching/QuenchEnergyAlpha_0.015.txt,sha256=kaSid3pQuBSwIeJ7CTmx6NsFgr2_A6u5GOgMqJiVvQA,195818
1048
1048
  tdcrpy/Quenching/QuenchEnergyAlpha_1.1e-05.txt,sha256=lozxOyzSB4FAukpuTQUGbtQHqiWldqMXXMgstEC76sc,182522
1049
1049
  tdcrpy/Quenching/QuenchEnergyAlpha_1.2e-05.txt,sha256=pjH7BVj9ohsPjL6hD6nJvL76nIL6HhkcVsmRYskI7dU,182825
@@ -1081,8 +1081,8 @@ tdcrpy/docs/_build/html/source/modules.html,sha256=Jf-qxVBId0UgpwyvYuyjtMNG-ezPO
1081
1081
  tdcrpy/docs/_build/html/source/tdcrpy.html,sha256=-38lHMNFB22p1tWJEeN3yDqfDiCYE304vxDamO1-iRc,3779
1082
1082
  tdcrpy/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1083
1083
  tdcrpy/test/test_tdcrpy.py,sha256=JINqSEMFoNpptE4f3h6ZzTYW1rBx90KkaoQzltSg-No,4692
1084
- TDCRPy-1.12.5.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
1085
- TDCRPy-1.12.5.dist-info/METADATA,sha256=xxdBCU9q0jB-pjBHRiUPnpWTTiaEFtk3PFBR6NN8u8o,15832
1086
- TDCRPy-1.12.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1087
- TDCRPy-1.12.5.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
1088
- TDCRPy-1.12.5.dist-info/RECORD,,
1084
+ TDCRPy-1.12.8.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
1085
+ TDCRPy-1.12.8.dist-info/METADATA,sha256=OEjNvvIMvaU1hd6FLP9hPiyV92aOGx7o598RNp3IMWU,15832
1086
+ TDCRPy-1.12.8.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
1087
+ TDCRPy-1.12.8.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
1088
+ TDCRPy-1.12.8.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (71.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
tdcrpy/Micelle/faq01.csv CHANGED
@@ -9,9 +9,9 @@
9
9
  80;0.88;0.86;0.78;0.7;0.62;0.56;0.51;0.47;0.42;0.35
10
10
  90;0.88;0.86;0.79;0.71;0.63;0.57;0.52;0.49;0.44;0.35
11
11
  100;0.88;0.87;0.8;0.72;0.64;0.6;0.54;0.5;0.45;0.36
12
- 110;0.89;0.87;0.8;0.73;0.65;0.62;0.56;0.51;0.56;0.37
12
+ 110;0.89;0.87;0.8;0.73;0.65;0.62;0.56;0.51;0.46;0.37
13
13
  120;0.89;0.87;0.81;0.74;0.67;0.64;0.57;0.53;0.47;0.38
14
- 130;0.89;0.87;0.82;0.75;0.68;65;0.58;0.54;0.48;0.4
14
+ 130;0.89;0.87;0.82;0.75;0.68;0.65;0.58;0.54;0.48;0.4
15
15
  140;0.89;0.87;0.82;0.76;0.69;0.67;0.59;0.56;0.49;0.42
16
16
  150;0.89;0.88;0.83;0.77;0.71;0.69;0.6;0.58;0.5;0.43
17
17
  160;0.89;0.88;0.83;0.78;0.72;0.7;0.62;0.6;0.51;0.44
tdcrpy/TDCRPy.py CHANGED
@@ -166,6 +166,7 @@ def TDCRPy(L, TD, TAB, TBC, TAC, Rad, pmf_1, N, kB, V, mode, mode2, Display=Fals
166
166
  file_conf = data_path
167
167
  config.read(file_conf)
168
168
  tau=config["Inputs"].getfloat("tau")
169
+ extDT=config["Inputs"].getfloat("extDT")
169
170
  micCorr=config["Inputs"].getboolean("micCorr")
170
171
  radListPureBeta = ["H-3", "C-14", "S-35", "Ca-45", "Ni-63", "Sr-89", "Sr-90", "Tc-99", "Pm-147", "Pu-241"]
171
172
  if (Rad in radListPureBeta) and (not Smodel):
@@ -694,7 +695,7 @@ def TDCRPy(L, TD, TAB, TBC, TAC, Rad, pmf_1, N, kB, V, mode, mode2, Display=Fals
694
695
  ====================
695
696
  '''
696
697
  if mode2=="sym":
697
- if evenement !=1:
698
+ if evenement !=1 and t1 > extDT*1e-6:
698
699
  p_nosingle = np.exp(-L*np.sum(np.asarray(e_quenching))/3) # probability to have 0 electrons in a PMT
699
700
  p_single = 1-p_nosingle # probability to have at least 1 electrons in a PMT
700
701
  p_nosingle2 = np.exp(-L*np.sum(np.asarray(e_quenching2))/3) # probability to have 0 electrons in a PMT
@@ -727,7 +728,7 @@ def TDCRPy(L, TD, TAB, TBC, TAC, Rad, pmf_1, N, kB, V, mode, mode2, Display=Fals
727
728
  if Display: print("\t\t Efficiency of triple events = ", round(efficiency_T[-1],5))
728
729
 
729
730
  elif mode2=="asym":
730
- if evenement !=1:
731
+ if evenement !=1 and t1 > extDT*1e-6:
731
732
  pA_nosingle = np.exp(-L[0]*np.sum(np.asarray(e_quenching))/3) # probability to have 0 electrons in a PMT
732
733
  pA_single = 1-pA_nosingle # probability to have at least 1 electrons in a PMT
733
734
  pB_nosingle = np.exp(-L[1]*np.sum(np.asarray(e_quenching))/3) # probability to have 0 electrons in a PMT
tdcrpy/TDCR_model_lib.py CHANGED
@@ -41,6 +41,7 @@ def readParameters(disp=False):
41
41
  nE_electron = config["Inputs"].getint("nE_electron")
42
42
  nE_alpha = config["Inputs"].getint("nE_alpha")
43
43
  tau = config["Inputs"].getint("tau")
44
+ extDT = config["Inputs"].getint("extDT")
44
45
  RHO = config["Inputs"].getfloat("density")
45
46
  Z = config["Inputs"].getfloat("Z")
46
47
  A = config["Inputs"].getfloat("A")
@@ -49,6 +50,7 @@ def readParameters(disp=False):
49
50
  Einterp_e = config["Inputs"].getfloat("Einterp_e")
50
51
  diam_micelle = config["Inputs"].getfloat("diam_micelle")
51
52
  fAq = config["Inputs"].getfloat("fAq")
53
+ micCorr = config["Inputs"].getboolean("micCorr")
52
54
 
53
55
  if disp:
54
56
  print(f"number of integration bins for electrons = {nE_electron}")
@@ -59,13 +61,15 @@ def readParameters(disp=False):
59
61
  print(f"depth of spline interp. = {depthSpline}")
60
62
  print(f"energy above which interp. in implemented (for alpha) = {Einterp_a} keV")
61
63
  print(f"energy above which interp. in implemented (for electron) = {Einterp_e} keV")
64
+ print(f"activation of the micelle correction = {micCorr}")
62
65
  print(f"diameter of micelle = {diam_micelle} nm")
63
66
  print(f"acqueous fraction = {fAq}")
64
67
  print(f"coincidence resolving time = {tau} ns")
68
+ print(f"extended dead time = {extDT} µs")
65
69
 
66
- return nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau
70
+ return nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau, extDT, micCorr
67
71
 
68
- nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau = readParameters()
72
+ nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau, extDT, micCorr = readParameters()
69
73
 
70
74
  def readConfigAsstr():
71
75
  path2config = str(config.read(file_conf)[0])
@@ -144,6 +148,18 @@ def modifyTau(x):
144
148
  data1 = data0.replace(f"tau = {x0}",f"tau = {x}")
145
149
  writeConfifAsstr(data1)
146
150
 
151
+ def modifyDeadTime(x):
152
+ data0 = readConfigAsstr()
153
+ x0 = readParameters()[11]
154
+ data1 = data0.replace(f"extDT = {x0}",f"extDT= {x}")
155
+ writeConfifAsstr(data1)
156
+
157
+ def modifyMicCorr(x):
158
+ data0 = readConfigAsstr()
159
+ x0 = readParameters()[12]
160
+ data1 = data0.replace(f"micCorr = {x0}",f"micCorr= {x}")
161
+ writeConfifAsstr(data1)
162
+
147
163
  # import PenNuc data
148
164
  with importlib.resources.as_file(files('tdcrpy').joinpath('decayData')) as data_path:
149
165
  #with importlib.resources.path('tdcrpy', 'decayData') as data_path:
tdcrpy/config.toml CHANGED
@@ -34,6 +34,8 @@ fAq = 0.1
34
34
  ## PROPERTIES OF THE COUNTER
35
35
  # Coincidence resolving time (ns)
36
36
  tau = 50
37
+ # Extended dead time (µs)
38
+ extDT = 10
37
39
 
38
40
  ## INTERPOLATION TO ESTIMATE THE QUENCHED ENERGY
39
41
  # depth (number of indexes on each side of the energy point) on which the spline interpolation is done.