TDCRPy 2.0.1__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.1
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
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.1.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
1085
- TDCRPy-2.0.1.dist-info/METADATA,sha256=1uc6qT_bX3JOrr_E6VUgM-vv3ICK2kAFqyThmJKbSNc,15831
1086
- TDCRPy-2.0.1.dist-info/WHEEL,sha256=nCVcAvsfA9TDtwGwhYaRrlPhTLV9m-Ga6mdyDtuwK18,91
1087
- TDCRPy-2.0.1.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
1088
- TDCRPy-2.0.1.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/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