PartSegCore-compiled-backend 0.15.12__tar.gz → 0.15.13__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.
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/.pre-commit-config.yaml +2 -5
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/PKG-INFO +1 -1
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/pyproject.toml +7 -1
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/_fast_unique.pyx +1 -1
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/find_split.py +0 -2
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/version.py +2 -2
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/.gitignore +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/CMakeLists.txt +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/LICENSE.txt +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/MANIFEST.in +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/Readme.md +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/docs/Makefile +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/docs/calc_bounds.rst +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/docs/conf.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/docs/fast_unique.rst +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/docs/index.rst +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/docs/make.bat +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/docs/napari_mapping.rst +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/docs/sprawl_utils.rst +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/__init__.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/_fast_unique.pyi +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/_napari_mapping.pyx +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/calc_bounds.pyi +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/calc_bounds.pyx +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/color_image_cython.pyi +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/color_image_cython.pyx +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/fast_unique.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/multiscale_opening/__init__.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/multiscale_opening/mso.h +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/multiscale_opening/mso_bind.pyi +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/multiscale_opening/mso_bind.pyx +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/multiscale_opening/my_queue.h +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/napari_mapping.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/__init__.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/distance_utils.pxd +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/euclidean_cython.pyi +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/euclidean_cython.pyx +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/find_split.pyi +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/fuzzy_distance.pyx +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/global_consts.h +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/my_queue.h +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/path_sprawl_cython.pyi +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/path_sprawl_cython.pyx +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/put_borders_in_queue.pyx +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/sprawl_utils.pyi +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/sprawl_utils/sprawl_utils.pyx +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/triangulate.pyx +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/triangulation/debug_util.hpp +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/triangulation/intersection.hpp +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/triangulation/point.hpp +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/triangulation/triangulate.hpp +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/PartSegCore_compiled_backend/utils.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/tests/test_calc_bounds.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/tests/test_coloring.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/tests/test_fast_unique.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/tests/test_napari_mapping.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/tests/test_sprawl_utils/__init__.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/tests/test_sprawl_utils/test_euclidean.py +0 -0
- {partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/src/tests/test_triangulate.py +0 -0
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
default_language_version:
|
|
2
|
-
python: python3.9
|
|
3
|
-
|
|
4
1
|
repos:
|
|
5
2
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
6
3
|
# Ruff version.
|
|
7
|
-
rev: v0.
|
|
4
|
+
rev: v0.12.0
|
|
8
5
|
hooks:
|
|
9
6
|
# Run the linter.
|
|
10
7
|
- id: ruff
|
|
@@ -36,7 +33,7 @@ repos:
|
|
|
36
33
|
additional_dependencies:
|
|
37
34
|
- tomli
|
|
38
35
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
39
|
-
rev:
|
|
36
|
+
rev: v20.1.6 # Use the sha / tag you want to point at
|
|
40
37
|
hooks:
|
|
41
38
|
- id: clang-format
|
|
42
39
|
args: ["-style=Google"]
|
{partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/pyproject.toml
RENAMED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
[build-system]
|
|
2
2
|
# Minimum requirements for the build system to execute.
|
|
3
|
-
requires = [
|
|
3
|
+
requires = [
|
|
4
|
+
"scikit-build-core",
|
|
5
|
+
"Cython",
|
|
6
|
+
"cython-cmake",
|
|
7
|
+
"numpy>=2",
|
|
8
|
+
"setuptools_scm[toml]>=8.1"
|
|
9
|
+
] # PEP 508 specifications.
|
|
4
10
|
build-backend = "scikit_build_core.build"
|
|
5
11
|
|
|
6
12
|
[tool.scikit-build]
|
|
@@ -27,7 +27,7 @@ ctypedef fused numpy_int_types:
|
|
|
27
27
|
def unique1d(np.ndarray[numpy_int_types, ndim=1] array):
|
|
28
28
|
cdef unordered_set[numpy_int_types] unique_values
|
|
29
29
|
cdef vector[unordered_set[numpy_int_types]] unique_values_vector
|
|
30
|
-
cdef Py_ssize_t i, j, n_rows, n_cols, id_num
|
|
30
|
+
cdef Py_ssize_t i, j, n_rows, n_cols, id_num, n_items
|
|
31
31
|
cdef numpy_int_types prev_val, v
|
|
32
32
|
n_items = array.shape[0]
|
|
33
33
|
unique_values_vector.resize(50) # openmp.omp_get_num_threads())
|
|
@@ -4,7 +4,6 @@ This module contains function to perform multiple component sprawl (watershed li
|
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
7
|
-
import logging
|
|
8
7
|
import os
|
|
9
8
|
import typing
|
|
10
9
|
from concurrent.futures import ThreadPoolExecutor, as_completed
|
|
@@ -385,7 +384,6 @@ def reverse_permutation(perm: list[int]) -> list[int]:
|
|
|
385
384
|
|
|
386
385
|
|
|
387
386
|
def relabel_with_perm(labeling: list, perm: list) -> list:
|
|
388
|
-
logging.debug('%(labeling), %(perm)', extra={'labeling': labeling, 'perm': perm})
|
|
389
387
|
perm = reverse_permutation(perm)
|
|
390
388
|
return [perm[x] for x in labeling]
|
|
391
389
|
|
|
File without changes
|
{partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/CMakeLists.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/docs/calc_bounds.rst
RENAMED
|
File without changes
|
|
File without changes
|
{partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/docs/fast_unique.rst
RENAMED
|
File without changes
|
{partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/docs/index.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{partsegcore_compiled_backend-0.15.12 → partsegcore_compiled_backend-0.15.13}/docs/sprawl_utils.rst
RENAMED
|
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
|
|
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
|