TDCRPy 1.9.4__py3-none-any.whl → 1.9.6__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: 1.9.4
3
+ Version: 1.9.6
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=qYl8BEI2lLm2oPGrnrxiFya7Y_aQU6dtyutUYHay4Yc,53858
2
2
  tdcrpy/TDCRPy1.py,sha256=QTBZh5B5JWnGB0BQfD-cFmwA9W080OD4sG-aj50-ejo,38106
3
- tdcrpy/TDCR_model_lib.py,sha256=WE3onlbl2gQtLiGRbQd-6IJR7cZiPKRvJicAysnCr84,104289
3
+ tdcrpy/TDCR_model_lib.py,sha256=YfOTuOqywl9gMqP7FlJo6I28obn4Qyv3zUHTRW7HZYs,104753
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
@@ -1068,7 +1068,7 @@ tdcrpy/Quenching/TandataUG.txt,sha256=AkUGz2dAZ6g3bQIIacR5f92aa8gmiklgRbN4Dyz-12
1068
1068
  tdcrpy/Quenching/alpha_toulene.txt,sha256=rJB9xCLM3GLg91EKfhu8sGwro281ySq6R0G5mXMt3f8,1553
1069
1069
  tdcrpy/Quenching/inputVecteurAlpha.txt,sha256=ee4emplX51vhomC7cGNP_eE5eqS9By5PaSSaa4hh1eg,178652
1070
1070
  tdcrpy/Quenching/inputVecteurElectron.txt,sha256=5NBRBaiB7op1SJ6v952w9gFKqh0x83pn8zYcoUpy33Y,181498
1071
- tdcrpy/decayData/All-nuclides_BetaShape.zip,sha256=Iu3Yg6SOB9vRjAG-q9bR57rdjoGZc47tzKX9_gCdeNM,7045047
1071
+ tdcrpy/decayData/All-nuclides_BetaShape.zip,sha256=JfbU66QYnYIki7nmwbXBnf7MDOa7JDBqFv4hEsEQQyM,7130930
1072
1072
  tdcrpy/decayData/All-nuclides_Ensdf.zip,sha256=GL-X_IG6x4ykGrWYaMiZrjfMXOvYPM07G-Cp8WCPOu8,437902
1073
1073
  tdcrpy/decayData/All-nuclides_PenNuc.zip,sha256=DmhS2CYegWhL8qggc_MO6FgyiXE5qX73dOoH-SSQXoo,388954
1074
1074
  tdcrpy/decayData/atom-ENDF-VII0.zip,sha256=oP4Z7qWweWF4j12QAIfvLFLlqeY1RomXwXD2iFgQCqo,1624444
@@ -1080,8 +1080,8 @@ tdcrpy/docs/_build/html/source/modules.html,sha256=Jf-qxVBId0UgpwyvYuyjtMNG-ezPO
1080
1080
  tdcrpy/docs/_build/html/source/tdcrpy.html,sha256=-38lHMNFB22p1tWJEeN3yDqfDiCYE304vxDamO1-iRc,3779
1081
1081
  tdcrpy/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1082
1082
  tdcrpy/test/test_tdcrpy.py,sha256=MTMiE0N7RiyE8Rom2Yu8kCDR03pJga9D6_o7wr7leVA,4675
1083
- TDCRPy-1.9.4.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
1084
- TDCRPy-1.9.4.dist-info/METADATA,sha256=MkUXBke9Oq2ivZ3I2HBD1e21LjKFDkE_O9PSiUQ37hE,15995
1085
- TDCRPy-1.9.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1086
- TDCRPy-1.9.4.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
1087
- TDCRPy-1.9.4.dist-info/RECORD,,
1083
+ TDCRPy-1.9.6.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
1084
+ TDCRPy-1.9.6.dist-info/METADATA,sha256=tA4rnXeUBedoSDn3z2B1bPcY7GQmE3CSq1kX27q4Ego,15995
1085
+ TDCRPy-1.9.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1086
+ TDCRPy-1.9.6.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
1087
+ TDCRPy-1.9.6.dist-info/RECORD,,
tdcrpy/TDCR_model_lib.py CHANGED
@@ -209,7 +209,8 @@ with importlib.resources.as_file(files('tdcrpy').joinpath('MCNP-MATRIX')) as dat
209
209
  sTc99 = data_path / 'Spectra_for_analytical_model/dep_spectrum_Tc-99.txt'
210
210
  sPm147 = data_path / 'Spectra_for_analytical_model/dep_spectrum_Pm-147.txt'
211
211
  sPu241 = data_path / 'Spectra_for_analytical_model/dep_spectrum_Pu-241.txt'
212
-
212
+ sCo60 = data_path / 'Spectra_for_analytical_model/dep_spectrum_Co-60.txt'
213
+
213
214
  # import stopping power data for electron
214
215
  with importlib.resources.as_file(files('tdcrpy').joinpath('Quenching')) as data_path:
215
216
  #with importlib.resources.path('tdcrpy', 'Quenching') as data_path:
@@ -788,6 +789,8 @@ def readBetaShape(rad,mode,level,z=z_betashape):
788
789
  Rad = rad.replace('-','')
789
790
  if level == 'tot':
790
791
  name_doc = Rad+'/'+mode+'_'+Rad+'_tot.bs'
792
+ elif level == 'tot_myEstep':
793
+ name_doc = Rad+'/'+mode+'_'+Rad+'_tot_myEstep.bs'
791
794
  else:
792
795
  name_doc = Rad+'/'+mode+'_'+Rad+'_'+ "trans" + str(level) +'.bs'
793
796
  with z.open(name_doc) as file_trans:
@@ -901,6 +904,7 @@ def readBetaSpectra(rad):
901
904
  elif rad == "Tc-99": file_path = sTc99
902
905
  elif rad == "Pm-147": file_path = sPm147
903
906
  elif rad == "Pu-241": file_path = sPu241
907
+ elif rad == "Co-60": file_path = sCo60
904
908
 
905
909
  with open(file_path, "r") as file:
906
910
  for line in file:
@@ -2627,7 +2631,11 @@ def buildBetaSpectra(rad, V, N, prt=False):
2627
2631
  None.
2628
2632
 
2629
2633
  """
2630
- e, p = readBetaShape(rad,"beta-",'tot')
2634
+ # e, p = readBetaShape(rad,"beta-",'tot')
2635
+ if rad=="Co-60":
2636
+ e, p = readBetaShape(rad,"beta-",'tot_myEstep')
2637
+ else:
2638
+ e, p = readBetaShape(rad,"beta-",'tot')
2631
2639
  N = int(N)
2632
2640
  ev=[]
2633
2641
  for i in range(N):
@@ -2655,6 +2663,7 @@ def buildBetaSpectra(rad, V, N, prt=False):
2655
2663
  elif rad == "Tc-99": file_path = sTc99
2656
2664
  elif rad == "Pm-147": file_path = sPm147
2657
2665
  elif rad == "Pu-241": file_path = sPu241
2666
+ elif rad == "Co-60": file_path = sCo60
2658
2667
 
2659
2668
  if prt:
2660
2669
  with open(file_path, "w") as file:
@@ -2662,7 +2671,7 @@ def buildBetaSpectra(rad, V, N, prt=False):
2662
2671
  file.write(f"{b}\t{p2[i]}\n")
2663
2672
 
2664
2673
 
2665
- # N = 1e6
2674
+ # N = 1e7
2666
2675
  # buildBetaSpectra('H-3', 16, N, prt=True); print('H-3 - done')
2667
2676
  # buildBetaSpectra('C-14', 16, N, prt=True); print('C-14 - done')
2668
2677
  # buildBetaSpectra('S-35', 16, N, prt=True); print('S-35 - done')
@@ -2673,4 +2682,5 @@ def buildBetaSpectra(rad, V, N, prt=False):
2673
2682
  # buildBetaSpectra('Tc-99', 16, N, prt=True); print('Tc-99 - done')
2674
2683
  # buildBetaSpectra('Pm-147', 16, N, prt=True); print('Pm-147 - done')
2675
2684
  # buildBetaSpectra('Pu-241', 16, N, prt=True); print('Pu-241 - done')
2685
+ # buildBetaSpectra('Co-60', 16, N, prt=True); print('Co-60 - done')
2676
2686
 
Binary file
File without changes