TDCRPy 1.12.6__py3-none-any.whl → 1.12.9__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.
- {TDCRPy-1.12.6.dist-info → TDCRPy-1.12.9.dist-info}/METADATA +1 -1
- {TDCRPy-1.12.6.dist-info → TDCRPy-1.12.9.dist-info}/RECORD +8 -8
- {TDCRPy-1.12.6.dist-info → TDCRPy-1.12.9.dist-info}/WHEEL +1 -1
- tdcrpy/TDCRPy.py +4 -2
- tdcrpy/TDCR_model_lib.py +26 -2
- tdcrpy/config.toml +4 -0
- {TDCRPy-1.12.6.dist-info → TDCRPy-1.12.9.dist-info}/LICENCE.md +0 -0
- {TDCRPy-1.12.6.dist-info → TDCRPy-1.12.9.dist-info}/top_level.txt +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
tdcrpy/TDCRPy.py,sha256
|
|
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=
|
|
3
|
+
tdcrpy/TDCR_model_lib.py,sha256=ti4IYTvrdOcZQ_AEihFUbudFS9X9TcVgP9b0J2Zdu8s,106906
|
|
4
4
|
tdcrpy/TDCRoptimize.py,sha256=c2XIGveeLdVYYek4Rg6dygMvVA2xIrIkMb3L-_jUucM,6496
|
|
5
5
|
tdcrpy/__init__.py,sha256=vQslGLsoZPIceaitnSHOqN6lUdjEyJ3YhfJ6tYdXt-s,127
|
|
6
|
-
tdcrpy/config.toml,sha256=
|
|
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.
|
|
1085
|
-
TDCRPy-1.12.
|
|
1086
|
-
TDCRPy-1.12.
|
|
1087
|
-
TDCRPy-1.12.
|
|
1088
|
-
TDCRPy-1.12.
|
|
1084
|
+
TDCRPy-1.12.9.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
|
|
1085
|
+
TDCRPy-1.12.9.dist-info/METADATA,sha256=1hIib83f6P76TVZli_gU8EowgGO6Qhq0dkDrsk1yz6A,15832
|
|
1086
|
+
TDCRPy-1.12.9.dist-info/WHEEL,sha256=Rp8gFpivVLXx-k3U95ozHnQw8yDcPxmhOpn_Gx8d5nc,91
|
|
1087
|
+
TDCRPy-1.12.9.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
|
|
1088
|
+
TDCRPy-1.12.9.dist-info/RECORD,,
|
tdcrpy/TDCRPy.py
CHANGED
|
@@ -166,6 +166,8 @@ 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")
|
|
170
|
+
measTime=config["Inputs"].getfloat("measTime")
|
|
169
171
|
micCorr=config["Inputs"].getboolean("micCorr")
|
|
170
172
|
radListPureBeta = ["H-3", "C-14", "S-35", "Ca-45", "Ni-63", "Sr-89", "Sr-90", "Tc-99", "Pm-147", "Pu-241"]
|
|
171
173
|
if (Rad in radListPureBeta) and (not Smodel):
|
|
@@ -694,7 +696,7 @@ def TDCRPy(L, TD, TAB, TBC, TAC, Rad, pmf_1, N, kB, V, mode, mode2, Display=Fals
|
|
|
694
696
|
====================
|
|
695
697
|
'''
|
|
696
698
|
if mode2=="sym":
|
|
697
|
-
if evenement !=1:
|
|
699
|
+
if evenement !=1 and t1 > extDT*1e-6 and t1 < measTime*60:
|
|
698
700
|
p_nosingle = np.exp(-L*np.sum(np.asarray(e_quenching))/3) # probability to have 0 electrons in a PMT
|
|
699
701
|
p_single = 1-p_nosingle # probability to have at least 1 electrons in a PMT
|
|
700
702
|
p_nosingle2 = np.exp(-L*np.sum(np.asarray(e_quenching2))/3) # probability to have 0 electrons in a PMT
|
|
@@ -727,7 +729,7 @@ def TDCRPy(L, TD, TAB, TBC, TAC, Rad, pmf_1, N, kB, V, mode, mode2, Display=Fals
|
|
|
727
729
|
if Display: print("\t\t Efficiency of triple events = ", round(efficiency_T[-1],5))
|
|
728
730
|
|
|
729
731
|
elif mode2=="asym":
|
|
730
|
-
if evenement !=1:
|
|
732
|
+
if evenement !=1 and t1 > extDT*1e-6 and t1 < measTime*60:
|
|
731
733
|
pA_nosingle = np.exp(-L[0]*np.sum(np.asarray(e_quenching))/3) # probability to have 0 electrons in a PMT
|
|
732
734
|
pA_single = 1-pA_nosingle # probability to have at least 1 electrons in a PMT
|
|
733
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
|
@@ -41,6 +41,8 @@ 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")
|
|
45
|
+
measTime = config["Inputs"].getint("measTime")
|
|
44
46
|
RHO = config["Inputs"].getfloat("density")
|
|
45
47
|
Z = config["Inputs"].getfloat("Z")
|
|
46
48
|
A = config["Inputs"].getfloat("A")
|
|
@@ -49,6 +51,7 @@ def readParameters(disp=False):
|
|
|
49
51
|
Einterp_e = config["Inputs"].getfloat("Einterp_e")
|
|
50
52
|
diam_micelle = config["Inputs"].getfloat("diam_micelle")
|
|
51
53
|
fAq = config["Inputs"].getfloat("fAq")
|
|
54
|
+
micCorr = config["Inputs"].getboolean("micCorr")
|
|
52
55
|
|
|
53
56
|
if disp:
|
|
54
57
|
print(f"number of integration bins for electrons = {nE_electron}")
|
|
@@ -59,13 +62,16 @@ def readParameters(disp=False):
|
|
|
59
62
|
print(f"depth of spline interp. = {depthSpline}")
|
|
60
63
|
print(f"energy above which interp. in implemented (for alpha) = {Einterp_a} keV")
|
|
61
64
|
print(f"energy above which interp. in implemented (for electron) = {Einterp_e} keV")
|
|
65
|
+
print(f"activation of the micelle correction = {micCorr}")
|
|
62
66
|
print(f"diameter of micelle = {diam_micelle} nm")
|
|
63
67
|
print(f"acqueous fraction = {fAq}")
|
|
64
68
|
print(f"coincidence resolving time = {tau} ns")
|
|
69
|
+
print(f"extended dead time = {extDT} µs")
|
|
70
|
+
print(f"measurement time = {measTime} min")
|
|
65
71
|
|
|
66
|
-
return nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau
|
|
72
|
+
return nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau, extDT, measTime, micCorr
|
|
67
73
|
|
|
68
|
-
nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau = readParameters()
|
|
74
|
+
nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau, extDT, measTime, micCorr = readParameters()
|
|
69
75
|
|
|
70
76
|
def readConfigAsstr():
|
|
71
77
|
path2config = str(config.read(file_conf)[0])
|
|
@@ -144,6 +150,24 @@ def modifyTau(x):
|
|
|
144
150
|
data1 = data0.replace(f"tau = {x0}",f"tau = {x}")
|
|
145
151
|
writeConfifAsstr(data1)
|
|
146
152
|
|
|
153
|
+
def modifyDeadTime(x):
|
|
154
|
+
data0 = readConfigAsstr()
|
|
155
|
+
x0 = readParameters()[11]
|
|
156
|
+
data1 = data0.replace(f"extDT = {x0}",f"extDT= {x}")
|
|
157
|
+
writeConfifAsstr(data1)
|
|
158
|
+
|
|
159
|
+
def modifyMeasTime(x):
|
|
160
|
+
data0 = readConfigAsstr()
|
|
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]
|
|
168
|
+
data1 = data0.replace(f"micCorr = {x0}",f"micCorr= {x}")
|
|
169
|
+
writeConfifAsstr(data1)
|
|
170
|
+
|
|
147
171
|
# import PenNuc data
|
|
148
172
|
with importlib.resources.as_file(files('tdcrpy').joinpath('decayData')) as data_path:
|
|
149
173
|
#with importlib.resources.path('tdcrpy', 'decayData') as data_path:
|
tdcrpy/config.toml
CHANGED
|
@@ -34,6 +34,10 @@ 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
|
|
39
|
+
# Measurement time (minutes)
|
|
40
|
+
measTime = 20
|
|
37
41
|
|
|
38
42
|
## INTERPOLATION TO ESTIMATE THE QUENCHED ENERGY
|
|
39
43
|
# depth (number of indexes on each side of the energy point) on which the spline interpolation is done.
|
|
File without changes
|
|
File without changes
|