c2ImageD11 0.4.0__tar.gz → 0.4.2__tar.gz
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.
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/.github/workflows/test.yml +8 -0
- {c2imaged11-0.4.0/c2ImageD11.egg-info → c2imaged11-0.4.2}/PKG-INFO +3 -2
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/c2ImageD11/__init__.py +3 -3
- {c2imaged11-0.4.0 → c2imaged11-0.4.2/c2ImageD11.egg-info}/PKG-INFO +3 -2
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/c2ImageD11.egg-info/SOURCES.txt +3 -0
- c2imaged11-0.4.2/c2ImageD11.egg-info/requires.txt +3 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/lib/interface/_cImageD11.c2py +981 -515
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/lib/interface/_cImageD11_wrapper.c +17555 -13860
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/lib/meson.build +12 -16
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/pyproject.toml +4 -3
- c2imaged11-0.4.2/tests/diag_format.py +149 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/tests/test_buffer.py +31 -0
- c2imaged11-0.4.2/tests/test_geometry_precision.py +203 -0
- c2imaged11-0.4.2/tests/test_type_equivalence.py +161 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/tools/harvester.py +1 -1
- c2imaged11-0.4.0/c2ImageD11.egg-info/requires.txt +0 -1
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/.githooks/check_all_pythons.sh +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/.githooks/pre-commit +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/.githooks/pre-push +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/.github/workflows/docs.yml +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/.github/workflows/release.yml +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/.github/workflows/test-aarch64.yml +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/.github/workflows/test-py27.yml +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/AGENTS.md +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/LICENSE +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/MANIFEST.in +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/README.md +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/c2ImageD11.egg-info/dependency_links.txt +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/c2ImageD11.egg-info/not-zip-safe +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/c2ImageD11.egg-info/top_level.txt +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/lib/interface/c2py.h +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/lib/interface/c2py_amd64.h +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/lib/interface/c2py_arm64.h +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/lib/interface/c2py_ppc64.h +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/setup.cfg +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/setup.py +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/tests/benchmark_timing.py +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/tests/conftest.py +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/tests/test_equivalence.py +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/tests/test_typecheck.py +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/tests/test_variants.py +0 -0
- {c2imaged11-0.4.0 → c2imaged11-0.4.2}/tools/strip_c2py.py +0 -0
|
@@ -80,6 +80,10 @@ jobs:
|
|
|
80
80
|
run: |
|
|
81
81
|
pip install numpy pytest
|
|
82
82
|
|
|
83
|
+
- name: Format diagnostic
|
|
84
|
+
run: |
|
|
85
|
+
cd "$GITHUB_WORKSPACE" && python tests/diag_format.py
|
|
86
|
+
|
|
83
87
|
- name: Run tests
|
|
84
88
|
run: |
|
|
85
89
|
cd "$(mktemp -d)" && python -m pytest "$GITHUB_WORKSPACE/tests/" -v
|
|
@@ -170,6 +174,10 @@ jobs:
|
|
|
170
174
|
run: |
|
|
171
175
|
pip install numpy pytest
|
|
172
176
|
|
|
177
|
+
- name: Format diagnostic
|
|
178
|
+
run: |
|
|
179
|
+
python %GITHUB_WORKSPACE%\tests\diag_format.py
|
|
180
|
+
|
|
173
181
|
- name: Run tests
|
|
174
182
|
run: |
|
|
175
183
|
move %GITHUB_WORKSPACE%\c2ImageD11\__init__.py %GITHUB_WORKSPACE%\c2ImageD11\__init__.py.bak
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: c2ImageD11
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: C extensions for ImageD11 (c2py23 binding)
|
|
5
5
|
Author-email: Jon Wright <wright@esrf.fr>
|
|
6
6
|
Project-URL: Homepage, https://github.com/jonwright/c2ImageD11
|
|
@@ -17,7 +17,8 @@ Classifier: Topic :: Scientific/Engineering :: Physics
|
|
|
17
17
|
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
18
18
|
Requires-Python: >=2.7
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
|
-
|
|
20
|
+
Provides-Extra: test
|
|
21
|
+
Requires-Dist: numpy; extra == "test"
|
|
21
22
|
|
|
22
23
|
# c2ImageD11
|
|
23
24
|
|
|
@@ -10,7 +10,7 @@ Provides:
|
|
|
10
10
|
|
|
11
11
|
from __future__ import absolute_import, division, print_function, unicode_literals
|
|
12
12
|
|
|
13
|
-
__version__ = "0.4.
|
|
13
|
+
__version__ = "0.4.2"
|
|
14
14
|
|
|
15
15
|
import os
|
|
16
16
|
import platform
|
|
@@ -72,16 +72,16 @@ if _mod is not None:
|
|
|
72
72
|
|
|
73
73
|
# ---- score_and_refine: single entry point, AoS/SoA dispatch in c2py23 wrapper ----
|
|
74
74
|
|
|
75
|
-
import numpy as np
|
|
76
|
-
|
|
77
75
|
def blobproperties(data, labels, npk, omega=0.0, verbose=0):
|
|
78
76
|
"""Allocate results and call C blobproperties, matching f2py convention."""
|
|
77
|
+
import numpy as np
|
|
79
78
|
results = np.zeros((npk, 36), dtype=np.float64)
|
|
80
79
|
_blobproperties_c(data, labels, npk, results, omega, verbose)
|
|
81
80
|
return results
|
|
82
81
|
|
|
83
82
|
def sparse_blob2Dproperties(v, i, j, labels, npk):
|
|
84
83
|
"""Allocate results and call C sparse_blob2Dproperties, matching f2py convention."""
|
|
84
|
+
import numpy as np
|
|
85
85
|
results = np.zeros((npk, 11), dtype=np.float64)
|
|
86
86
|
_sparse_blob2Dproperties_c(v, i, j, labels, npk, results)
|
|
87
87
|
return results
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: c2ImageD11
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: C extensions for ImageD11 (c2py23 binding)
|
|
5
5
|
Author-email: Jon Wright <wright@esrf.fr>
|
|
6
6
|
Project-URL: Homepage, https://github.com/jonwright/c2ImageD11
|
|
@@ -17,7 +17,8 @@ Classifier: Topic :: Scientific/Engineering :: Physics
|
|
|
17
17
|
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
18
18
|
Requires-Python: >=2.7
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
|
-
|
|
20
|
+
Provides-Extra: test
|
|
21
|
+
Requires-Dist: numpy; extra == "test"
|
|
21
22
|
|
|
22
23
|
# c2ImageD11
|
|
23
24
|
|
|
@@ -28,8 +28,11 @@ lib/interface/c2py_arm64.h
|
|
|
28
28
|
lib/interface/c2py_ppc64.h
|
|
29
29
|
tests/benchmark_timing.py
|
|
30
30
|
tests/conftest.py
|
|
31
|
+
tests/diag_format.py
|
|
31
32
|
tests/test_buffer.py
|
|
32
33
|
tests/test_equivalence.py
|
|
34
|
+
tests/test_geometry_precision.py
|
|
35
|
+
tests/test_type_equivalence.py
|
|
33
36
|
tests/test_typecheck.py
|
|
34
37
|
tests/test_variants.py
|
|
35
38
|
tools/harvester.py
|