TDCRPy 2.0.0__py3-none-any.whl → 2.0.2__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: 2.0.0
3
+ Version: 2.0.2
4
4
  Summary: TDCR model
5
5
  Home-page: https://pypi.org/project/TDCRPy/
6
6
  Author: RomainCoulon (Romain Coulon)
@@ -1,6 +1,6 @@
1
- tdcrpy/TDCRPy.py,sha256=MBIIarFldIoz1BOyWlB_5rKA_5NMed2QQfM-2xqJnUg,61031
1
+ tdcrpy/TDCRPy.py,sha256=Q6ksEJQvjNgbcWPiWFAcT0QDBCN2x5lHs_W4Leh7KO0,61092
2
2
  tdcrpy/TDCRPy1.py,sha256=QTBZh5B5JWnGB0BQfD-cFmwA9W080OD4sG-aj50-ejo,38106
3
- tdcrpy/TDCR_model_lib.py,sha256=I8AOboq9sgCnkMpu871RTABgxvUg-OwBNzL20EARJpo,124068
3
+ tdcrpy/TDCR_model_lib.py,sha256=gnWWLG96hdT0uFkL0sE4CMuXNcP6DTQ3S3Jq_jwnYMg,125487
4
4
  tdcrpy/TDCRoptimize.py,sha256=c2XIGveeLdVYYek4Rg6dygMvVA2xIrIkMb3L-_jUucM,6496
5
5
  tdcrpy/__init__.py,sha256=9Djir8dPNchcJVQvhl-oRHEOsoDkiZlkOhWT-eHR7wQ,95
6
6
  tdcrpy/config.toml,sha256=d_olKEgxfobBHkZ2wEj9EgKE7I8Wbpim9ZAsi5ImFxk,1470
@@ -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-2.0.0.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
1085
- TDCRPy-2.0.0.dist-info/METADATA,sha256=VHpxRhIMAyLRXOcwjFkhQ-E0bVBk5yIQ_YsevRQorcY,15831
1086
- TDCRPy-2.0.0.dist-info/WHEEL,sha256=nCVcAvsfA9TDtwGwhYaRrlPhTLV9m-Ga6mdyDtuwK18,91
1087
- TDCRPy-2.0.0.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
1088
- TDCRPy-2.0.0.dist-info/RECORD,,
1084
+ TDCRPy-2.0.2.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
1085
+ TDCRPy-2.0.2.dist-info/METADATA,sha256=FEl2Wv8r3dccx-1t4dCcsKKRtcDwVfxKzLxtlHyR3qM,15831
1086
+ TDCRPy-2.0.2.dist-info/WHEEL,sha256=nCVcAvsfA9TDtwGwhYaRrlPhTLV9m-Ga6mdyDtuwK18,91
1087
+ TDCRPy-2.0.2.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
1088
+ TDCRPy-2.0.2.dist-info/RECORD,,
tdcrpy/TDCRPy.py CHANGED
@@ -1096,6 +1096,8 @@ def eff(TD, Rad, pmf_1, kB, V, N=10000, L=1, maxiter=20, xatol=1e-7, disp=False)
1096
1096
  else:
1097
1097
  symm = True
1098
1098
 
1099
+ TDCRPy(L, Rad, pmf_1, N, kB, V, record = True)
1100
+
1099
1101
  if symm: r=opt.minimize_scalar(objectFct, args=(TD, Rad, pmf_1, N, kB, V), method='bounded', bounds = (0.1, 5), options={'disp': disp, 'maxiter':maxiter})
1100
1102
  else: r=opt.minimize_scalar(objectFct, args=(TD[0], Rad, pmf_1, N, kB, V), method='bounded', bounds = (0.1, 5), options={'disp': disp, 'maxiter':maxiter})
1101
1103
  L0=r.x
@@ -1128,10 +1130,10 @@ def eff(TD, Rad, pmf_1, kB, V, N=10000, L=1, maxiter=20, xatol=1e-7, disp=False)
1128
1130
 
1129
1131
 
1130
1132
  # # L = 1
1131
- # # L = (1.1, 1.05, 1.15)
1132
- # # TD = 0.977667386529166
1133
+ # L = (1.1, 1.05, 1.15)
1134
+ # # # TD = 0.977667386529166
1133
1135
  # TD = (0.977667386529166, 0.992232838598821, 0.992343419459002, 0.99275350064608)
1134
- # # TD = (0.977667386529166, 0.995232838598821, 0.990343419459002, 0.99275350064608)
1136
+ # # # TD = (0.977667386529166, 0.995232838598821, 0.990343419459002, 0.99275350064608)
1135
1137
  # Rad="Co-60"
1136
1138
  # pmf_1="1"
1137
1139
  # N = 1000
tdcrpy/TDCR_model_lib.py CHANGED
@@ -3057,8 +3057,40 @@ def efficienciesEstimates(efficiency_S, efficiency_D, efficiency_T, efficiency_A
3057
3057
  return mean_efficiency_S, std_efficiency_S, mean_efficiency_D, std_efficiency_D, mean_efficiency_T, std_efficiency_T, mean_efficiency_AB, std_efficiency_AB, mean_efficiency_BC, std_efficiency_BC, mean_efficiency_AC, std_efficiency_AC, mean_efficiency_D2, std_efficiency_D2
3058
3058
 
3059
3059
 
3060
-
3061
-
3060
+ def readRecQuenchedEnergies():
3061
+ temp_dir = tempfile.gettempdir()
3062
+ recfile3 = os.path.join(temp_dir, "Temp_E2.txt")
3063
+ with open(recfile3, "r") as file:
3064
+ Epromt, Edelayed = [], []
3065
+ decaym = -1
3066
+ e_quenching = []; e_quenching2 = []; evenement=1; t1=0
3067
+ for line in file:
3068
+ if line[0] != "#":
3069
+ line = line.split(' ')
3070
+ line = [element for element in line if element != ""]
3071
+ decay = int(line[2])
3072
+ if decay != decaym:
3073
+ if decay>0:
3074
+ Epromt.append(sum(e_quenching))
3075
+ Edelayed.append(sum(e_quenching2))
3076
+
3077
+
3078
+ energy = float(line[1])*1e-3
3079
+ t1 = float(line[4])
3080
+ decaym = decay
3081
+ e_quenching = []; e_quenching2 = []
3082
+ evenement=1
3083
+ e_quenching.append(energy)
3084
+ else:
3085
+ energy = float(line[1])*1e-3
3086
+ t1 = float(line[4])
3087
+ # print(decay, energy, t1, extDT)
3088
+ if t1 > tau*1e-9:
3089
+ evenement = evenement + 1
3090
+ e_quenching2.append(energy)
3091
+ else:
3092
+ e_quenching.append(energy)
3093
+ return Epromt, Edelayed
3062
3094
 
3063
3095
  # N = 1e7
3064
3096
  # buildBetaSpectra('H-3', 16, N, prt=True); print('H-3 - done')
File without changes