fastremap 1.15.0__tar.gz → 1.15.1__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.
- {fastremap-1.15.0 → fastremap-1.15.1}/.github/workflows/build_wheel.yml +2 -2
- fastremap-1.15.1/.github/workflows/test.yml +37 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/ChangeLog +11 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/PKG-INFO +1 -1
- {fastremap-1.15.0 → fastremap-1.15.1}/fastremap.egg-info/PKG-INFO +1 -1
- {fastremap-1.15.0 → fastremap-1.15.1}/fastremap.egg-info/SOURCES.txt +1 -1
- fastremap-1.15.1/fastremap.egg-info/pbr.json +1 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/src/fastremap.pyx +1 -1
- fastremap-1.15.0/fastremap.egg-info/pbr.json +0 -1
- fastremap-1.15.0/test.cpp +0 -70
- {fastremap-1.15.0 → fastremap-1.15.1}/.dockerignore +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/AUTHORS +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/LICENSE +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/MANIFEST.in +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/README.md +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/automated_test.py +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/build_linux.sh +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/fastremap.egg-info/dependency_links.txt +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/fastremap.egg-info/not-zip-safe +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/fastremap.egg-info/requires.txt +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/fastremap.egg-info/top_level.txt +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/manylinux1.Dockerfile +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/manylinux2010.Dockerfile +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/manylinux2014.Dockerfile +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/pyproject.toml +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/requirements.txt +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/requirements_dev.txt +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/setup.cfg +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/setup.py +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/src/fastremap.pxd +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/src/ipt.hpp +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/src/ska_flat_hash_map.hpp +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/test.py +0 -0
- {fastremap-1.15.0 → fastremap-1.15.1}/tox.ini +0 -0
@@ -28,13 +28,13 @@ jobs:
|
|
28
28
|
uses: docker/setup-qemu-action@v1
|
29
29
|
|
30
30
|
- name: Build wheels
|
31
|
-
uses: pypa/cibuildwheel@v2.
|
31
|
+
uses: pypa/cibuildwheel@v2.22.0
|
32
32
|
# to supply options, put them in 'env', like:
|
33
33
|
env:
|
34
34
|
CIBW_ARCHS_LINUX: ${{matrix.arch}}
|
35
35
|
CIBW_BEFORE_BUILD: pip install numpy setuptools wheel cython
|
36
36
|
CIBW_ARCHS_MACOS: "x86_64 arm64"
|
37
37
|
|
38
|
-
- uses: actions/upload-artifact@
|
38
|
+
- uses: actions/upload-artifact@v3
|
39
39
|
with:
|
40
40
|
path: ./wheelhouse/*.whl
|
@@ -0,0 +1,37 @@
|
|
1
|
+
name: Tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
branches:
|
9
|
+
- "*"
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
run_tests:
|
13
|
+
name: Test ${{ matrix.os }} Python ${{ matrix.python-version }}
|
14
|
+
runs-on: ${{ matrix.os }}
|
15
|
+
strategy:
|
16
|
+
matrix:
|
17
|
+
os: [ubuntu-20.04, macos-latest, windows-2019]
|
18
|
+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
19
|
+
|
20
|
+
steps:
|
21
|
+
- name: Set up Python ${{ matrix.python-version }}
|
22
|
+
uses: actions/setup-python@v2
|
23
|
+
with:
|
24
|
+
python-version: ${{ matrix.python-version }}
|
25
|
+
|
26
|
+
- uses: actions/checkout@v2
|
27
|
+
|
28
|
+
- name: Install dependencies
|
29
|
+
run: |
|
30
|
+
python -m pip install --upgrade pip
|
31
|
+
python -m pip install pytest -r requirements.txt -r requirements_dev.txt setuptools wheel
|
32
|
+
|
33
|
+
- name: Compile
|
34
|
+
run: python setup.py develop
|
35
|
+
|
36
|
+
- name: Test with pytest
|
37
|
+
run: pytest -v -x automated_test.py
|
@@ -1,6 +1,17 @@
|
|
1
1
|
CHANGES
|
2
2
|
=======
|
3
3
|
|
4
|
+
1.15.1
|
5
|
+
------
|
6
|
+
|
7
|
+
* ci: use artifact v3
|
8
|
+
* ci: bump cibuildwheel for py313
|
9
|
+
* ci: add setuptools
|
10
|
+
* ci: incorrect reference to requirements\_dev.txt
|
11
|
+
* ci: rename main -> master to trigger test process
|
12
|
+
* refactor: remove old obsolete test file
|
13
|
+
* ci: add automated testing through GHA
|
14
|
+
|
4
15
|
1.15.0
|
5
16
|
------
|
6
17
|
|
@@ -14,10 +14,10 @@ requirements.txt
|
|
14
14
|
requirements_dev.txt
|
15
15
|
setup.cfg
|
16
16
|
setup.py
|
17
|
-
test.cpp
|
18
17
|
test.py
|
19
18
|
tox.ini
|
20
19
|
.github/workflows/build_wheel.yml
|
20
|
+
.github/workflows/test.yml
|
21
21
|
fastremap.egg-info/PKG-INFO
|
22
22
|
fastremap.egg-info/SOURCES.txt
|
23
23
|
fastremap.egg-info/dependency_links.txt
|
@@ -0,0 +1 @@
|
|
1
|
+
{"git_version": "0ea7a0b", "is_release": true}
|
@@ -897,7 +897,7 @@ def unique_via_sort(cnp.ndarray[ALLINT, ndim=1] labels):
|
|
897
897
|
|
898
898
|
del labels
|
899
899
|
|
900
|
-
return np.array(uniq), np.array(counts)
|
900
|
+
return np.array(uniq, dtype=labels.dtype), np.array(counts)
|
901
901
|
|
902
902
|
@cython.boundscheck(False)
|
903
903
|
@cython.wraparound(False) # turn off negative index wrapping for entire function
|
@@ -1 +0,0 @@
|
|
1
|
-
{"git_version": "80ce9fc", "is_release": true}
|
fastremap-1.15.0/test.cpp
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
#include <cstdio>
|
2
|
-
#include <cstdint>
|
3
|
-
#include "ipt.hpp"
|
4
|
-
|
5
|
-
void print(int* arr, int sx, int sy) {
|
6
|
-
for (int y = 0; y < sy; y++) {
|
7
|
-
for (int x = 0; x < sx; x++) {
|
8
|
-
printf("%i ", arr[x + sx * y]);
|
9
|
-
}
|
10
|
-
printf("\n");
|
11
|
-
}
|
12
|
-
printf("\n");
|
13
|
-
}
|
14
|
-
|
15
|
-
void print(int* arr, int sx, int sy, int sz) {
|
16
|
-
if (sx == 1) {
|
17
|
-
print(arr, sy, sz);
|
18
|
-
return;
|
19
|
-
}
|
20
|
-
|
21
|
-
for (int z = 0; z < sz; z++) {
|
22
|
-
for (int y = 0; y < sy; y++) {
|
23
|
-
for (int x = 0; x < sx; x++) {
|
24
|
-
printf("%i ", arr[x + sx * y + sx * sy * z]);
|
25
|
-
}
|
26
|
-
printf("\n");
|
27
|
-
}
|
28
|
-
printf("\n");
|
29
|
-
}
|
30
|
-
printf("\n");
|
31
|
-
}
|
32
|
-
|
33
|
-
|
34
|
-
void print(float* arr, int sx, int sy, int sz, int sw) {
|
35
|
-
for (int w = 0; w < sw; w++) {
|
36
|
-
for (int z = 0; z < sz; z++) {
|
37
|
-
for (int y = 0; y < sy; y++) {
|
38
|
-
for (int x = 0; x < sx; x++) {
|
39
|
-
printf("%.1f ", arr[x + sx * y + sx * sy * z]);
|
40
|
-
}
|
41
|
-
printf("\n");
|
42
|
-
}
|
43
|
-
printf("\n");
|
44
|
-
}
|
45
|
-
printf("\n");
|
46
|
-
}
|
47
|
-
printf("\n");
|
48
|
-
}
|
49
|
-
|
50
|
-
int main () {
|
51
|
-
int sx = 7;
|
52
|
-
int sy = 3;
|
53
|
-
int sz = 5;
|
54
|
-
int sw = 1;
|
55
|
-
|
56
|
-
int *arr = new int[sx * sy * sz * sw]();
|
57
|
-
|
58
|
-
for (int i = 0; i < sx * sy * sz * sw; i++) {
|
59
|
-
arr[i] = (int)i;
|
60
|
-
}
|
61
|
-
|
62
|
-
print(arr, sx, sy, sz);
|
63
|
-
// ipt::rect_ipt_2d<int>(arr, sx, sy);
|
64
|
-
// ipt::rect_ipt_3d<int>(arr, sx, sy, sz);
|
65
|
-
ipt::rect_ipt<int>(arr, sx, sy, sz);
|
66
|
-
print(arr, sz, sy, sx);
|
67
|
-
delete []arr;
|
68
|
-
|
69
|
-
return 0;
|
70
|
-
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|