TDCRPy 0.0.18__py3-none-any.whl → 0.0.20__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: 0.0.18
3
+ Version: 0.0.20
4
4
  Summary: TDCR model
5
5
  Home-page: https://github.com/RomainCoulon/TDCRPy
6
6
  Author: RomainCoulon (Romain Coulon)
@@ -1,7 +1,7 @@
1
1
  tdcrpy/Activity_TDCR.py,sha256=wcllEOJbeEOexAYzcFGQx2luIBhxSU3LtpEalRmNziw,11530
2
2
  tdcrpy/EfficiencyProfils.py,sha256=-ZUPva1dU7lMRcKbQAewX9QyiTDwCiNQDoaQiw7dOI4,4829
3
3
  tdcrpy/TDCRPy.py,sha256=5dcjZ7humT1yD55PN3UaFhVYLowIBxNe0FtGOE22aC4,23233
4
- tdcrpy/TDCR_model_lib.py,sha256=bF2S2L3L5c4y2Bg6G1tG1PVR7mJJ1L6UU7G0IEHNsTY,79829
4
+ tdcrpy/TDCR_model_lib.py,sha256=-s8ENVqySLTm2hGsMvBP2oqXMbgkjbD50uX5fxjcvMI,79997
5
5
  tdcrpy/TDCRoptimize.py,sha256=2CssmP_SZSe6C_Bkgei3hon21RPytH4DetMbXi-e6wk,3171
6
6
  tdcrpy/__init__.py,sha256=DrgMGzw5vhdxbXvJq3orzdPeFaq8CwtDHzssp1_DqhM,93
7
7
  tdcrpy/decay.py,sha256=Lnq-kj-6Xs2Rw9w3Y3LlK_ffFip1QzemHdesiug0Wko,817
@@ -9,8 +9,8 @@ tdcrpy/test.py,sha256=3r8LxXmQwlHNIefMswwUCy3OoHHKDVK8A3izerGT15U,292
9
9
  tdcrpy/test1.py,sha256=rGA9d1cgArhAfxRAAdtiz-vPGQ0Ns3HEdN8sCwydHYM,3250
10
10
  tdcrpy/decayData/All-nuclides_PenNuc.zip,sha256=DmhS2CYegWhL8qggc_MO6FgyiXE5qX73dOoH-SSQXoo,388954
11
11
  tdcrpy/decayData/__init__.py,sha256=fCgaXa17n3BU4O4o1OW9aEGJgSW3mwHIAdLuRH4rpRM,55
12
- TDCRPy-0.0.18.dist-info/LICENCE.md,sha256=fuYzrZRiOAjJBzA1tsGQwojCgGROArb2Ec48GDTjlWM,1086
13
- TDCRPy-0.0.18.dist-info/METADATA,sha256=8F5Gc_J_PBx7y0TOFMaJQwhyFUy7-wl4rSu4ckuEAHU,5633
14
- TDCRPy-0.0.18.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
15
- TDCRPy-0.0.18.dist-info/top_level.txt,sha256=VgPJa9YJ7fi8wrr9qDJPLhu3tK1BcFRIP6Ib4r3BEfs,7
16
- TDCRPy-0.0.18.dist-info/RECORD,,
12
+ TDCRPy-0.0.20.dist-info/LICENCE.md,sha256=fuYzrZRiOAjJBzA1tsGQwojCgGROArb2Ec48GDTjlWM,1086
13
+ TDCRPy-0.0.20.dist-info/METADATA,sha256=NnkSOFv_10DtLhRBOahuXkb83s65ggEtsIQIHNkHotQ,5633
14
+ TDCRPy-0.0.20.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
15
+ TDCRPy-0.0.20.dist-info/top_level.txt,sha256=VgPJa9YJ7fi8wrr9qDJPLhu3tK1BcFRIP6Ib4r3BEfs,7
16
+ TDCRPy-0.0.20.dist-info/RECORD,,
tdcrpy/TDCR_model_lib.py CHANGED
@@ -10,6 +10,7 @@ Bureau International des Poids et Mesures
10
10
 
11
11
  ### IMPORT Python Module
12
12
  import urllib.request as rq
13
+ import importlib.resources
13
14
  import numpy as np
14
15
  from numpy.core.multiarray import where
15
16
  import zipfile as zf
@@ -264,7 +265,10 @@ def readPenNuc(rad):
264
265
  # toc() # 0.016 s
265
266
 
266
267
  if absolutePath: file_pennuc = 'G:\Python_modules\Jialin\Code\decayData\\All-nuclides_PenNuc.zip'
267
- else: file_pennuc = "decayData//All-nuclides_PenNuc.zip"
268
+ else:
269
+ # file_pennuc = "decayData//All-nuclides_PenNuc.zip"
270
+ with importlib.resources.path('tdcrpy', 'decayData') as data_path:
271
+ file_pennuc = data_path / "All-nuclides_PenNuc.zip"
268
272
 
269
273
  z_PenNuc = zf.ZipFile(file_pennuc)
270
274