TDCRPy 2.1.0__py3-none-any.whl → 2.2.0__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/TDCRPy.py +74 -17
- {TDCRPy-2.1.0.dist-info → tdcrpy-2.2.0.dist-info}/METADATA +14 -2
- {TDCRPy-2.1.0.dist-info → tdcrpy-2.2.0.dist-info}/RECORD +6 -6
- {TDCRPy-2.1.0.dist-info → tdcrpy-2.2.0.dist-info}/WHEEL +1 -1
- {TDCRPy-2.1.0.dist-info → tdcrpy-2.2.0.dist-info/licenses}/LICENCE.md +0 -0
- {TDCRPy-2.1.0.dist-info → tdcrpy-2.2.0.dist-info}/top_level.txt +0 -0
tdcrpy/TDCRPy.py
CHANGED
|
@@ -691,7 +691,7 @@ def TDCRPy(L, Rad, pmf_1, N, kB, V, mode="eff", Display=False, barp=False, Smode
|
|
|
691
691
|
|
|
692
692
|
if p == "electron" or ("Auger" in p): col1 = "1"
|
|
693
693
|
elif p == "gamma" or ("X" in p): col1 = "2"
|
|
694
|
-
elif p == "
|
|
694
|
+
elif p == "positron": col1 = "3"
|
|
695
695
|
elif p == "alpha": col1 = "4"
|
|
696
696
|
else: writeOn = False
|
|
697
697
|
|
|
@@ -709,7 +709,7 @@ def TDCRPy(L, Rad, pmf_1, N, kB, V, mode="eff", Display=False, barp=False, Smode
|
|
|
709
709
|
|
|
710
710
|
if p == "electron" or ("Auger" in p): col1 = "1"
|
|
711
711
|
elif p == "gamma" or ("X" in p): col1 = "2"
|
|
712
|
-
elif p == "
|
|
712
|
+
elif p == "positron": col1 = "3"
|
|
713
713
|
elif p == "alpha": col1 = "4"
|
|
714
714
|
else: writeOn = False
|
|
715
715
|
|
|
@@ -825,7 +825,7 @@ def TDCRPy(L, Rad, pmf_1, N, kB, V, mode="eff", Display=False, barp=False, Smode
|
|
|
825
825
|
|
|
826
826
|
if p == "electron" or ("Auger" in p): col1 = "1"
|
|
827
827
|
elif p == "gamma" or ("X" in p): col1 = "2"
|
|
828
|
-
elif p == "
|
|
828
|
+
elif p == "positron": col1 = "3"
|
|
829
829
|
elif p == "alpha": col1 = "4"
|
|
830
830
|
else: writeOn = False
|
|
831
831
|
|
|
@@ -843,7 +843,7 @@ def TDCRPy(L, Rad, pmf_1, N, kB, V, mode="eff", Display=False, barp=False, Smode
|
|
|
843
843
|
|
|
844
844
|
if p == "electron" or ("Auger" in p): col1 = "1"
|
|
845
845
|
elif p == "gamma" or ("X" in p): col1 = "2"
|
|
846
|
-
elif p == "
|
|
846
|
+
elif p == "positron": col1 = "3"
|
|
847
847
|
elif p == "alpha": col1 = "4"
|
|
848
848
|
else: writeOn = False
|
|
849
849
|
|
|
@@ -911,7 +911,7 @@ def TDCRPy(L, Rad, pmf_1, N, kB, V, mode="eff", Display=False, barp=False, Smode
|
|
|
911
911
|
|
|
912
912
|
if p == "electron" or ("Auger" in p): col1 = "1"
|
|
913
913
|
elif p == "gamma" or ("X" in p): col1 = "2"
|
|
914
|
-
elif p == "
|
|
914
|
+
elif p == "positron": col1 = "3"
|
|
915
915
|
elif p == "alpha": col1 = "4"
|
|
916
916
|
else: writeOn = False
|
|
917
917
|
|
|
@@ -929,7 +929,7 @@ def TDCRPy(L, Rad, pmf_1, N, kB, V, mode="eff", Display=False, barp=False, Smode
|
|
|
929
929
|
|
|
930
930
|
if p == "electron" or ("Auger" in p): col1 = "1"
|
|
931
931
|
elif p == "gamma" or ("X" in p): col1 = "2"
|
|
932
|
-
elif p == "
|
|
932
|
+
elif p == "positron": col1 = "3"
|
|
933
933
|
elif p == "alpha": col1 = "4"
|
|
934
934
|
else: writeOn = False
|
|
935
935
|
|
|
@@ -1137,7 +1137,7 @@ def effA(TD, Rad, pmf_1, kB, V, L=1, maxiter=20, xatol=1e-7, disp=False):
|
|
|
1137
1137
|
Parameters
|
|
1138
1138
|
----------
|
|
1139
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/
|
|
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/D, T/AB, T/BC, T/AC)
|
|
1141
1141
|
Rad : string
|
|
1142
1142
|
List of radionuclides (eg. "H-3, Co-60").
|
|
1143
1143
|
pmf_1 : string
|
|
@@ -1226,18 +1226,74 @@ def effA(TD, Rad, pmf_1, kB, V, L=1, maxiter=20, xatol=1e-7, disp=False):
|
|
|
1226
1226
|
|
|
1227
1227
|
|
|
1228
1228
|
|
|
1229
|
+
# mode = "eff" # ask for efficiency calculation
|
|
1230
|
+
# Rad="Na-22" # radionuclides
|
|
1231
|
+
# pmf_1="1" # relatives fractions of the radionulides
|
|
1232
|
+
# N = 1000 # number of Monte Carlo trials
|
|
1233
|
+
# kB =1.0e-5 # Birks constant in cm keV-1
|
|
1234
|
+
# V = 10 # volume of scintillator in mL
|
|
1235
|
+
# L=np.logspace(-3,2,num=100) # free parameter in keV-1
|
|
1236
|
+
|
|
1237
|
+
# # TDCRPy(1, Rad, pmf_1, 10, kB, V, mode, Display= True, barp=False, record=True)
|
|
1238
|
+
# # Record decay histories in temporary files
|
|
1239
|
+
# TDCRPy(L[0], Rad, pmf_1, N, kB, V, mode, barp=True, record=True)
|
|
1240
|
+
|
|
1241
|
+
# effS, u_effS, effD, u_effD, effT, u_effT, effD2, u_effD2 = [], [],[], [],[], [], [], []
|
|
1242
|
+
# for l in tqdm(L, desc="free parameters ", unit=" iterations"):
|
|
1243
|
+
# out = TDCRPy(l, Rad, pmf_1, N, kB, V, mode, readRecHist=True)
|
|
1244
|
+
# effS.append(out[2])
|
|
1245
|
+
# u_effS.append(out[3])
|
|
1246
|
+
# effD.append(out[2])
|
|
1247
|
+
# u_effD.append(out[3])
|
|
1248
|
+
# effT.append(out[4])
|
|
1249
|
+
# u_effT.append(out[5])
|
|
1250
|
+
# effD2.append(out[12])
|
|
1251
|
+
# u_effD2.append(out[13])
|
|
1252
|
+
|
|
1253
|
+
# effS=np.asarray(effS)
|
|
1254
|
+
# effT=np.asarray(effT)
|
|
1255
|
+
# effD=np.asarray(effD)
|
|
1256
|
+
# effD2=np.asarray(effD2)
|
|
1257
|
+
# u_effS=np.asarray(u_effS)
|
|
1258
|
+
# u_effT=np.asarray(u_effT)
|
|
1259
|
+
# u_effD=np.asarray(u_effD)
|
|
1260
|
+
# u_effD2=np.asarray(u_effD2)
|
|
1261
|
+
|
|
1262
|
+
# tdcr=effT/effD
|
|
1263
|
+
# u_tdcr=np.sqrt(u_effD**2*effT**2/effD**4+u_effT**2/effD**2)
|
|
1264
|
+
|
|
1265
|
+
# import matplotlib.pyplot as plt
|
|
1266
|
+
# plt.figure("efficiency vs free parameter")
|
|
1267
|
+
# plt.clf()
|
|
1268
|
+
# plt.errorbar(L,effD,yerr=u_effD,fmt="-k",label="double coincidences")
|
|
1269
|
+
# plt.errorbar(L,effT,yerr=u_effT,fmt="-r",label="triple coincidences")
|
|
1270
|
+
# plt.errorbar(L,effD2,yerr=u_effD2,fmt="-g",label="double coincidences (CIEMAT/NIST)")
|
|
1271
|
+
# plt.xscale('log')
|
|
1272
|
+
# plt.xlabel(r'$L$ /keV$^{-1}$', fontsize=14)
|
|
1273
|
+
# plt.ylabel(r'$\epsilon$', fontsize=14)
|
|
1274
|
+
# plt.legend()
|
|
1275
|
+
|
|
1276
|
+
# plt.figure("efficiency vs TDCR")
|
|
1277
|
+
# plt.clf()
|
|
1278
|
+
# plt.errorbar(tdcr,effD,xerr=u_tdcr,yerr=u_effD,fmt="-k")
|
|
1279
|
+
# #plt.xscale('log')
|
|
1280
|
+
# plt.xlabel(r'$R_T/R_D$', fontsize=14)
|
|
1281
|
+
# plt.ylabel(r'$\epsilon_{D}$', fontsize=14)
|
|
1282
|
+
# plt.show()
|
|
1229
1283
|
|
|
1230
1284
|
|
|
1231
1285
|
# L = 1
|
|
1232
1286
|
# # L = (1.1, 1.05, 1.15)
|
|
1233
|
-
# TD = 0.977667386529166
|
|
1234
|
-
# # TD = (0.
|
|
1235
|
-
# #
|
|
1236
|
-
#
|
|
1287
|
+
# # TD = 0.977667386529166
|
|
1288
|
+
# # TD = (0.9767359812638453, 0.9925429293804757, 0.991829757077315, 0.9919970813639295) # source 1
|
|
1289
|
+
# # TD = (0.9768862920127371, 0.9928478299182348, 0.9912531441227223, 0.9924249578285456) # source 2
|
|
1290
|
+
# # TD = (0.9769014488454436, 0.9918130431206161, 0.9920156754198314, 0.9927119011073454) # source 3
|
|
1291
|
+
# TD = (0.9764032345164899, 0.9928417189012709, 0.9911455450383777, 0.9920402844839974) # source 4
|
|
1292
|
+
# Rad="Tc-99"
|
|
1237
1293
|
# pmf_1="1"
|
|
1238
|
-
# N =
|
|
1239
|
-
# kB =1.
|
|
1240
|
-
# V =
|
|
1294
|
+
# N = 10000
|
|
1295
|
+
# kB =1.4e-5
|
|
1296
|
+
# V = 16
|
|
1241
1297
|
# mode = "eff"
|
|
1242
1298
|
|
|
1243
1299
|
|
|
@@ -1246,6 +1302,7 @@ def effA(TD, Rad, pmf_1, kB, V, L=1, maxiter=20, xatol=1e-7, disp=False):
|
|
|
1246
1302
|
# # # out = TDCRPy(L, Rad, pmf_1, N, kB, V, Display = False, record = False, readRecHist = True)
|
|
1247
1303
|
# # # print("result", out)
|
|
1248
1304
|
|
|
1249
|
-
#
|
|
1250
|
-
#
|
|
1251
|
-
# print(
|
|
1305
|
+
# outS = eff(TD, Rad, pmf_1, kB, V, N=10000, L=1, maxiter=20, xatol=1e-7)
|
|
1306
|
+
# outA = effA(TD, Rad, pmf_1, kB, V, L=1, maxiter=20, xatol=1e-7)
|
|
1307
|
+
# print(outS)
|
|
1308
|
+
# print(outA)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: TDCRPy
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: TDCR model
|
|
5
5
|
Home-page: https://pypi.org/project/TDCRPy/
|
|
6
6
|
Author: RomainCoulon (Romain Coulon)
|
|
@@ -27,6 +27,18 @@ Requires-Dist: scipy
|
|
|
27
27
|
Requires-Dist: configparser
|
|
28
28
|
Requires-Dist: importlib.resources
|
|
29
29
|
Requires-Dist: matplotlib
|
|
30
|
+
Dynamic: author
|
|
31
|
+
Dynamic: author-email
|
|
32
|
+
Dynamic: classifier
|
|
33
|
+
Dynamic: description
|
|
34
|
+
Dynamic: description-content-type
|
|
35
|
+
Dynamic: home-page
|
|
36
|
+
Dynamic: keywords
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
Dynamic: project-url
|
|
39
|
+
Dynamic: requires-dist
|
|
40
|
+
Dynamic: requires-python
|
|
41
|
+
Dynamic: summary
|
|
30
42
|
|
|
31
43
|
# 1. About TDCRPy
|
|
32
44
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
tdcrpy/TDCRPy.py,sha256=
|
|
1
|
+
tdcrpy/TDCRPy.py,sha256=W_bP1lC0s1zgIEqio9CjynO8yKKiVVYXA-VvPZbdHJw,66998
|
|
2
2
|
tdcrpy/TDCRPy1.py,sha256=QTBZh5B5JWnGB0BQfD-cFmwA9W080OD4sG-aj50-ejo,38106
|
|
3
3
|
tdcrpy/TDCR_model_lib.py,sha256=o7pMbr8IsnfzC4RIDRaZjQ_CY65HmcVSBEgPHLxNWRI,126529
|
|
4
4
|
tdcrpy/TDCRoptimize.py,sha256=c2XIGveeLdVYYek4Rg6dygMvVA2xIrIkMb3L-_jUucM,6496
|
|
@@ -74,8 +74,8 @@ tdcrpy/docs/_build/html/source/modules.html,sha256=Jf-qxVBId0UgpwyvYuyjtMNG-ezPO
|
|
|
74
74
|
tdcrpy/docs/_build/html/source/tdcrpy.html,sha256=-38lHMNFB22p1tWJEeN3yDqfDiCYE304vxDamO1-iRc,3779
|
|
75
75
|
tdcrpy/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
76
76
|
tdcrpy/test/test_tdcrpy.py,sha256=JINqSEMFoNpptE4f3h6ZzTYW1rBx90KkaoQzltSg-No,4692
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
tdcrpy-2.2.0.dist-info/licenses/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
|
|
78
|
+
tdcrpy-2.2.0.dist-info/METADATA,sha256=8LauuFHTb8gVFJn1Knb38BX_wptMRdl6slBbJKPDN_I,45298
|
|
79
|
+
tdcrpy-2.2.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
80
|
+
tdcrpy-2.2.0.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
|
|
81
|
+
tdcrpy-2.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|