TDCRPy 1.12.1__py3-none-any.whl → 1.12.4__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.1.dist-info → TDCRPy-1.12.4.dist-info}/METADATA +1 -1
- {TDCRPy-1.12.1.dist-info → TDCRPy-1.12.4.dist-info}/RECORD +7 -7
- tdcrpy/TDCRPy.py +1 -1
- tdcrpy/TDCR_model_lib.py +34 -28
- {TDCRPy-1.12.1.dist-info → TDCRPy-1.12.4.dist-info}/LICENCE.md +0 -0
- {TDCRPy-1.12.1.dist-info → TDCRPy-1.12.4.dist-info}/WHEEL +0 -0
- {TDCRPy-1.12.1.dist-info → TDCRPy-1.12.4.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
tdcrpy/TDCRPy.py,sha256
|
|
1
|
+
tdcrpy/TDCRPy.py,sha256=-HhkBRjAU04jTMroHgSQ3yfI_IpYTrK35cPo67bV1RI,53904
|
|
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=-A76ITMcu9o5_E7yQ-H-MaRNKSYY7FTmXpgFNwY4E28,105935
|
|
4
4
|
tdcrpy/TDCRoptimize.py,sha256=c2XIGveeLdVYYek4Rg6dygMvVA2xIrIkMb3L-_jUucM,6496
|
|
5
5
|
tdcrpy/__init__.py,sha256=vQslGLsoZPIceaitnSHOqN6lUdjEyJ3YhfJ6tYdXt-s,127
|
|
6
6
|
tdcrpy/config.toml,sha256=rHuuM520HZquGrEd8LAVUdvnzZGtk90pigudy-MXnm8,1389
|
|
@@ -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.4.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
|
|
1085
|
+
TDCRPy-1.12.4.dist-info/METADATA,sha256=mzHjhp-6eyqB214_MET93Q1MUlvsaSPr2iLs0Ch2i80,15832
|
|
1086
|
+
TDCRPy-1.12.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
1087
|
+
TDCRPy-1.12.4.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
|
|
1088
|
+
TDCRPy-1.12.4.dist-info/RECORD,,
|
tdcrpy/TDCRPy.py
CHANGED
|
@@ -334,7 +334,7 @@ def TDCRPy(L, TD, TAB, TBC, TAC, Rad, pmf_1, N, kB, V, mode, mode2, Display=Fals
|
|
|
334
334
|
while levelOftheDaughter > 0: # Go on the loop while the daughter nucleus is a its fundamental level (energy 0)
|
|
335
335
|
i_level = levelNumber[index_rad][iDaughter].index([levelOftheDaughter]) # Find the position in the daughter level vector
|
|
336
336
|
|
|
337
|
-
t1 = np.random.exponential(trans_halfLife[index_rad][iDaughter][i_level][0], size=1)[0]
|
|
337
|
+
t1 = np.random.exponential(trans_halfLife[index_rad][iDaughter][i_level][0]/np.log(2), size=1)[0]
|
|
338
338
|
|
|
339
339
|
# test whether the decay occurs within the coincidence resolving time or not
|
|
340
340
|
if t1 > tau*1e-9:
|
tdcrpy/TDCR_model_lib.py
CHANGED
|
@@ -29,37 +29,43 @@ from tqdm import tqdm
|
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
31
|
# import advanced configuration data
|
|
32
|
-
|
|
33
32
|
config = configparser.ConfigParser()
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
config
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
33
|
+
|
|
34
|
+
def readParameters(disp=False):
|
|
35
|
+
global config, file_conf
|
|
36
|
+
config = configparser.ConfigParser()
|
|
37
|
+
with importlib.resources.as_file(files('tdcrpy').joinpath('config.toml')) as data_path:
|
|
38
|
+
file_conf = data_path
|
|
39
|
+
config.read(file_conf)
|
|
40
|
+
|
|
41
|
+
nE_electron = config["Inputs"].getint("nE_electron")
|
|
42
|
+
nE_alpha = config["Inputs"].getint("nE_alpha")
|
|
43
|
+
tau = config["Inputs"].getint("tau")
|
|
44
|
+
RHO = config["Inputs"].getfloat("density")
|
|
45
|
+
Z = config["Inputs"].getfloat("Z")
|
|
46
|
+
A = config["Inputs"].getfloat("A")
|
|
47
|
+
depthSpline = config["Inputs"].getint("depthSpline")
|
|
48
|
+
Einterp_a = config["Inputs"].getfloat("Einterp_a")
|
|
49
|
+
Einterp_e = config["Inputs"].getfloat("Einterp_e")
|
|
50
|
+
diam_micelle = config["Inputs"].getfloat("diam_micelle")
|
|
51
|
+
fAq = config["Inputs"].getfloat("fAq")
|
|
52
|
+
|
|
53
|
+
if disp:
|
|
54
|
+
print(f"number of integration bins for electrons = {nE_electron}")
|
|
55
|
+
print(f"number of integration bins for alpha = {nE_alpha}")
|
|
56
|
+
print(f"density = {RHO} g/cm3")
|
|
57
|
+
print(f"Z = {Z}")
|
|
58
|
+
print(f"A = {A}")
|
|
59
|
+
print(f"depth of spline interp. = {depthSpline}")
|
|
60
|
+
print(f"energy above which interp. in implemented (for alpha) = {Einterp_a} keV")
|
|
61
|
+
print(f"energy above which interp. in implemented (for electron) = {Einterp_e} keV")
|
|
62
|
+
print(f"diameter of micelle = {diam_micelle} nm")
|
|
63
|
+
print(f"acqueous fraction = {fAq}")
|
|
64
|
+
|
|
61
65
|
return nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau
|
|
62
66
|
|
|
67
|
+
nE_electron, nE_alpha, RHO, Z, A, depthSpline, Einterp_a, Einterp_e, diam_micelle, fAq, tau = readParameters()
|
|
68
|
+
|
|
63
69
|
def readConfigAsstr():
|
|
64
70
|
path2config = str(config.read(file_conf)[0])
|
|
65
71
|
with open(path2config, 'r') as file:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|