h2lib 13.0.403__cp38-cp38-win_amd64.whl → 13.0.404__cp38-cp38-win_amd64.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.
- h2lib/HAWC2Lib.dll +0 -0
- h2lib/dll_wrapper.py +5 -2
- {h2lib-13.0.403.dist-info → h2lib-13.0.404.dist-info}/METADATA +2 -2
- h2lib-13.0.404.dist-info/RECORD +10 -0
- h2lib-13.0.403.dist-info/RECORD +0 -10
- {h2lib-13.0.403.dist-info → h2lib-13.0.404.dist-info}/WHEEL +0 -0
- {h2lib-13.0.403.dist-info → h2lib-13.0.404.dist-info}/top_level.txt +0 -0
h2lib/HAWC2Lib.dll
CHANGED
Binary file
|
h2lib/dll_wrapper.py
CHANGED
@@ -2,7 +2,7 @@ import numpy as np
|
|
2
2
|
from numpy.ctypeslib import ndpointer
|
3
3
|
import ctypes as ct
|
4
4
|
import _ctypes
|
5
|
-
|
5
|
+
import platform
|
6
6
|
import os
|
7
7
|
import ctypes
|
8
8
|
from _ctypes import POINTER
|
@@ -77,7 +77,10 @@ class DLLWrapper(object):
|
|
77
77
|
def open(self):
|
78
78
|
assert os.path.isfile(self.filename), os.path.abspath(self.filename)
|
79
79
|
if self.cdecl:
|
80
|
-
|
80
|
+
if tuple(map(int,platform.python_version().split('.'))) < (3,8):
|
81
|
+
self.lib = ct.CDLL(self.filename)
|
82
|
+
else:
|
83
|
+
self.lib = ct.CDLL(self.filename, winmode=ctypes.DEFAULT_MODE)
|
81
84
|
else:
|
82
85
|
self.lib = windll.LoadLibrary(self.filename)
|
83
86
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
h2lib/HAWC2Lib.dll,sha256=Z_ZG24v0RfQSlGz7NUNsuUNklhy4uAJYHqewsWP4c1w,29047296
|
2
|
+
h2lib/__init__.py,sha256=v4RtCtR7Cfv-LSx-9tnLK0WSefKVjIKrGjfBVBhONzI,27
|
3
|
+
h2lib/_h2lib.py,sha256=GBSryoz1g_FuPMk3zIKjVBmzq5JpQgLn1x7OZJXkzwY,801
|
4
|
+
h2lib/calc.py,sha256=eqPH_ruyWpnXVJDH8jVjuV3u-Dh_MiwSlgEV-hjDM_w,448
|
5
|
+
h2lib/dll_wrapper.py,sha256=pe6WKgIX4eDwROPwZROFM63a5cdnNnz0E68W-1T5YaA,9712
|
6
|
+
h2lib/h2lib_signatures.py,sha256=Kz7UrEA7yNMUi5sy6R7wUdClhvLAKNecAjq10WpB55k,3214
|
7
|
+
h2lib-13.0.404.dist-info/METADATA,sha256=FA9xI0sBY2yeHasEod3UzQuT_BxSJwkEq49YOzEAEOg,333
|
8
|
+
h2lib-13.0.404.dist-info/WHEEL,sha256=KplWMgwSZbeAOumvxNxIrVbNPnn_LVzfBH7l38jDCVM,100
|
9
|
+
h2lib-13.0.404.dist-info/top_level.txt,sha256=y_a-tUqphEZQ_0nsWSMaSb21P8Lsd8hUxUdE9g2Dcbk,6
|
10
|
+
h2lib-13.0.404.dist-info/RECORD,,
|
h2lib-13.0.403.dist-info/RECORD
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
h2lib/HAWC2Lib.dll,sha256=ORMbJNxztaD8ZlQSwl_9tOnsLQ4BzQzhJ4f8s1y9GT8,29047296
|
2
|
-
h2lib/__init__.py,sha256=v4RtCtR7Cfv-LSx-9tnLK0WSefKVjIKrGjfBVBhONzI,27
|
3
|
-
h2lib/_h2lib.py,sha256=GBSryoz1g_FuPMk3zIKjVBmzq5JpQgLn1x7OZJXkzwY,801
|
4
|
-
h2lib/calc.py,sha256=eqPH_ruyWpnXVJDH8jVjuV3u-Dh_MiwSlgEV-hjDM_w,448
|
5
|
-
h2lib/dll_wrapper.py,sha256=QlLN66g4aUHFulNrmLhLHczItNjxPV8u_f9A2pGUpug,9545
|
6
|
-
h2lib/h2lib_signatures.py,sha256=Kz7UrEA7yNMUi5sy6R7wUdClhvLAKNecAjq10WpB55k,3214
|
7
|
-
h2lib-13.0.403.dist-info/METADATA,sha256=Cp2Nno5TvO4B74qYeirxWdHT5i6PBYXY8B8DMEzLLno,333
|
8
|
-
h2lib-13.0.403.dist-info/WHEEL,sha256=KplWMgwSZbeAOumvxNxIrVbNPnn_LVzfBH7l38jDCVM,100
|
9
|
-
h2lib-13.0.403.dist-info/top_level.txt,sha256=y_a-tUqphEZQ_0nsWSMaSb21P8Lsd8hUxUdE9g2Dcbk,6
|
10
|
-
h2lib-13.0.403.dist-info/RECORD,,
|
File without changes
|
File without changes
|