TDCRPy 1.12.8__py3-none-any.whl → 1.12.10__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.8
3
+ Version: 1.12.10
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=EQt-DPGO1ffJs_8TNSOUxR--1W9XukACawo7DgUNne8,53989
1
+ tdcrpy/TDCRPy.py,sha256=r9n6AK4_8Oy7UF-asFMOd7kAgdaXuvT3BYLn33QhUko,54082
2
2
  tdcrpy/TDCRPy1.py,sha256=QTBZh5B5JWnGB0BQfD-cFmwA9W080OD4sG-aj50-ejo,38106
3
- tdcrpy/TDCR_model_lib.py,sha256=Rgc0JpRKGN79C4IhsGxlCi185xxIrKfRCF8oLRAqH44,106606
3
+ tdcrpy/TDCR_model_lib.py,sha256=Vqbd-JVhGdF9BzW9axYwCHl2MOBfupCJ1ih5Nz_aXts,106906
4
4
  tdcrpy/TDCRoptimize.py,sha256=c2XIGveeLdVYYek4Rg6dygMvVA2xIrIkMb3L-_jUucM,6496
5
5
  tdcrpy/__init__.py,sha256=vQslGLsoZPIceaitnSHOqN6lUdjEyJ3YhfJ6tYdXt-s,127
6
- tdcrpy/config.toml,sha256=0SXcv120NwqquXLw4w3P9d4uG0pctU7EvF0mzGarfGw,1427
6
+ tdcrpy/config.toml,sha256=d_olKEgxfobBHkZ2wEj9EgKE7I8Wbpim9ZAsi5ImFxk,1470
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
@@ -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.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,,
1084
+ TDCRPy-1.12.10.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
1085
+ TDCRPy-1.12.10.dist-info/METADATA,sha256=QvGnz71W4UM-DqHH6Hd2_tXhgqm1ZmroKRwlC9SMS-0,15833
1086
+ TDCRPy-1.12.10.dist-info/WHEEL,sha256=Rp8gFpivVLXx-k3U95ozHnQw8yDcPxmhOpn_Gx8d5nc,91
1087
+ TDCRPy-1.12.10.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
1088
+ TDCRPy-1.12.10.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (71.1.0)
2
+ Generator: setuptools (72.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
tdcrpy/TDCRPy.py CHANGED
@@ -167,6 +167,7 @@ def TDCRPy(L, TD, TAB, TBC, TAC, Rad, pmf_1, N, kB, V, mode, mode2, Display=Fals
167
167
  config.read(file_conf)
168
168
  tau=config["Inputs"].getfloat("tau")
169
169
  extDT=config["Inputs"].getfloat("extDT")
170
+ measTime=config["Inputs"].getfloat("measTime")
170
171
  micCorr=config["Inputs"].getboolean("micCorr")
171
172
  radListPureBeta = ["H-3", "C-14", "S-35", "Ca-45", "Ni-63", "Sr-89", "Sr-90", "Tc-99", "Pm-147", "Pu-241"]
172
173
  if (Rad in radListPureBeta) and (not Smodel):
@@ -695,7 +696,7 @@ def TDCRPy(L, TD, TAB, TBC, TAC, Rad, pmf_1, N, kB, V, mode, mode2, Display=Fals
695
696
  ====================
696
697
  '''
697
698
  if mode2=="sym":
698
- if evenement !=1 and t1 > extDT*1e-6:
699
+ if evenement !=1 and t1 > extDT*1e-6 and t1 < measTime*60:
699
700
  p_nosingle = np.exp(-L*np.sum(np.asarray(e_quenching))/3) # probability to have 0 electrons in a PMT
700
701
  p_single = 1-p_nosingle # probability to have at least 1 electrons in a PMT
701
702
  p_nosingle2 = np.exp(-L*np.sum(np.asarray(e_quenching2))/3) # probability to have 0 electrons in a PMT
@@ -728,7 +729,7 @@ def TDCRPy(L, TD, TAB, TBC, TAC, Rad, pmf_1, N, kB, V, mode, mode2, Display=Fals
728
729
  if Display: print("\t\t Efficiency of triple events = ", round(efficiency_T[-1],5))
729
730
 
730
731
  elif mode2=="asym":
731
- if evenement !=1 and t1 > extDT*1e-6:
732
+ if evenement !=1 and t1 > extDT*1e-6 and t1 < measTime*60:
732
733
  pA_nosingle = np.exp(-L[0]*np.sum(np.asarray(e_quenching))/3) # probability to have 0 electrons in a PMT
733
734
  pA_single = 1-pA_nosingle # probability to have at least 1 electrons in a PMT
734
735
  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
@@ -42,6 +42,7 @@ def readParameters(disp=False):
42
42
  nE_alpha = config["Inputs"].getint("nE_alpha")
43
43
  tau = config["Inputs"].getint("tau")
44
44
  extDT = config["Inputs"].getint("extDT")
45
+ measTime = config["Inputs"].getint("measTime")
45
46
  RHO = config["Inputs"].getfloat("density")
46
47
  Z = config["Inputs"].getfloat("Z")
47
48
  A = config["Inputs"].getfloat("A")
@@ -66,10 +67,11 @@ def readParameters(disp=False):
66
67
  print(f"acqueous fraction = {fAq}")
67
68
  print(f"coincidence resolving time = {tau} ns")
68
69
  print(f"extended dead time = {extDT} µs")
70
+ print(f"measurement time = {measTime} min")
69
71
 
70
- return nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau, extDT, micCorr
72
+ return nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau, extDT, measTime, micCorr
71
73
 
72
- nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau, extDT, micCorr = readParameters()
74
+ nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau, extDT, measTime, micCorr = readParameters()
73
75
 
74
76
  def readConfigAsstr():
75
77
  path2config = str(config.read(file_conf)[0])
@@ -151,12 +153,18 @@ def modifyTau(x):
151
153
  def modifyDeadTime(x):
152
154
  data0 = readConfigAsstr()
153
155
  x0 = readParameters()[11]
154
- data1 = data0.replace(f"extDT = {x0}",f"extDT= {x}")
156
+ data1 = data0.replace(f"extDT = {x0}",f"extDT = {x}")
155
157
  writeConfifAsstr(data1)
156
158
 
157
- def modifyMicCorr(x):
159
+ def modifyMeasTime(x):
158
160
  data0 = readConfigAsstr()
159
161
  x0 = readParameters()[12]
162
+ data1 = data0.replace(f"measTime = {x0}",f"measTime = {x}")
163
+ writeConfifAsstr(data1)
164
+
165
+ def modifyMicCorr(x):
166
+ data0 = readConfigAsstr()
167
+ x0 = readParameters()[13]
160
168
  data1 = data0.replace(f"micCorr = {x0}",f"micCorr= {x}")
161
169
  writeConfifAsstr(data1)
162
170
 
tdcrpy/config.toml CHANGED
@@ -36,6 +36,8 @@ fAq = 0.1
36
36
  tau = 50
37
37
  # Extended dead time (µs)
38
38
  extDT = 10
39
+ # Measurement time (minutes)
40
+ measTime = 20
39
41
 
40
42
  ## INTERPOLATION TO ESTIMATE THE QUENCHED ENERGY
41
43
  # depth (number of indexes on each side of the energy point) on which the spline interpolation is done.