TDCRPy 1.9.8__py3-none-any.whl → 1.9.9__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.8
3
+ Version: 1.9.9
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=kl0UM0HEY7D95M1c806IkYkXl7du1BMtWUA7jTiOGVs,53859
2
2
  tdcrpy/TDCRPy1.py,sha256=QTBZh5B5JWnGB0BQfD-cFmwA9W080OD4sG-aj50-ejo,38106
3
- tdcrpy/TDCR_model_lib.py,sha256=Lfl2xIXbleN-W1t3ad6ki6wKgttXNpww7KITcb3SgPg,104751
3
+ tdcrpy/TDCR_model_lib.py,sha256=_UlE_899c6jFgZoV4uZb-0iKTL9GraS_wvBnTxlJp0g,104784
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
@@ -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.8.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
1084
- TDCRPy-1.9.8.dist-info/METADATA,sha256=qqblBiwN8n0Dj8GWVq4HO5_ZUm-nzcI9G7BtX8o_OIo,15995
1085
- TDCRPy-1.9.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1086
- TDCRPy-1.9.8.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
1087
- TDCRPy-1.9.8.dist-info/RECORD,,
1083
+ TDCRPy-1.9.9.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
1084
+ TDCRPy-1.9.9.dist-info/METADATA,sha256=P7afUBbL_j4ZV3hKPN0ZqAkyVLC4BWu1ISCRdBSnI-s,15995
1085
+ TDCRPy-1.9.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1086
+ TDCRPy-1.9.9.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
1087
+ TDCRPy-1.9.9.dist-info/RECORD,,
tdcrpy/TDCR_model_lib.py CHANGED
@@ -18,12 +18,11 @@ import pkg_resources
18
18
  import configparser
19
19
  import numpy as np
20
20
  import zipfile as zf
21
- import time
22
21
  import re
23
22
  import os
24
23
  import scipy.interpolate as interp
25
24
  import matplotlib.pyplot as plt
26
- import toml
25
+ from tqdm import tqdm
27
26
 
28
27
  """
29
28
  ======= Import ressource data =======
@@ -2637,7 +2636,7 @@ def buildBetaSpectra(rad, V, N, prt=False):
2637
2636
  e, p = readBetaShape(rad,"beta-",'tot')
2638
2637
  N = int(N)
2639
2638
  ev=[]
2640
- for i in range(N):
2639
+ for i in tqdm(range(N), desc="Processing", unit=" bins"):
2641
2640
  ind = sampling(p)
2642
2641
  ev.append(energie_dep_beta2(e[ind],V))
2643
2642
  counts, bins = np.histogram(ev, bins=e, density=True)
@@ -2670,7 +2669,7 @@ def buildBetaSpectra(rad, V, N, prt=False):
2670
2669
  file.write(f"{b}\t{p2[i]}\n")
2671
2670
 
2672
2671
 
2673
- # N = 1e7
2672
+ N = 1e7
2674
2673
  # buildBetaSpectra('H-3', 16, N, prt=True); print('H-3 - done')
2675
2674
  # buildBetaSpectra('C-14', 16, N, prt=True); print('C-14 - done')
2676
2675
  # buildBetaSpectra('S-35', 16, N, prt=True); print('S-35 - done')
@@ -2681,5 +2680,5 @@ def buildBetaSpectra(rad, V, N, prt=False):
2681
2680
  # buildBetaSpectra('Tc-99', 16, N, prt=True); print('Tc-99 - done')
2682
2681
  # buildBetaSpectra('Pm-147', 16, N, prt=True); print('Pm-147 - done')
2683
2682
  # buildBetaSpectra('Pu-241', 16, N, prt=True); print('Pu-241 - done')
2684
- # buildBetaSpectra('Co-60', 16, N, prt=True); print('Co-60 - done')
2683
+ buildBetaSpectra('Co-60', 16, N, prt=True); print('Co-60 - done')
2685
2684
 
File without changes