swcgeom 0.19.0__tar.gz → 0.19.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.
Potentially problematic release.
This version of swcgeom might be problematic. Click here for more details.
- {swcgeom-0.19.0/swcgeom.egg-info → swcgeom-0.19.1}/PKG-INFO +2 -2
- {swcgeom-0.19.0 → swcgeom-0.19.1}/pyproject.toml +2 -2
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/images/io.py +37 -14
- {swcgeom-0.19.0 → swcgeom-0.19.1/swcgeom.egg-info}/PKG-INFO +2 -2
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom.egg-info/requires.txt +2 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/LICENSE +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/README.md +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/setup.cfg +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/__init__.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/analysis/__init__.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/analysis/feature_extractor.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/analysis/features.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/analysis/lmeasure.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/analysis/sholl.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/analysis/trunk.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/analysis/visualization.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/analysis/visualization3d.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/analysis/volume.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/__init__.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/branch.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/branch_tree.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/compartment.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/node.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/path.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/population.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/swc.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/swc_utils/__init__.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/swc_utils/assembler.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/swc_utils/base.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/swc_utils/checker.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/swc_utils/io.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/swc_utils/normalizer.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/swc_utils/subtree.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/tree.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/tree_utils.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/core/tree_utils_impl.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/images/__init__.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/images/augmentation.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/images/contrast.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/images/folder.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/__init__.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/base.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/branch.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/branch_tree.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/geometry.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/image_preprocess.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/image_stack.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/images.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/mst.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/neurolucida_asc.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/path.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/population.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/tree.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/transforms/tree_assembler.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/__init__.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/debug.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/download.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/dsu.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/ellipse.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/file.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/neuromorpho.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/numpy_helper.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/plotter_2d.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/plotter_3d.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/renderer.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/sdf.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/solid_geometry.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/transforms.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom/utils/volumetric_object.py +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom.egg-info/SOURCES.txt +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom.egg-info/dependency_links.txt +0 -0
- {swcgeom-0.19.0 → swcgeom-0.19.1}/swcgeom.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: swcgeom
|
|
3
|
-
Version: 0.19.
|
|
3
|
+
Version: 0.19.1
|
|
4
4
|
Summary: Neuron geometry library for swc format
|
|
5
5
|
Author-email: yzx9 <pypi@yzx9.xyz>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -20,7 +20,7 @@ Requires-Dist: seaborn>=0.12.0
|
|
|
20
20
|
Requires-Dist: tifffile>=2022.8.12
|
|
21
21
|
Requires-Dist: typing-extensions>=4.4.0
|
|
22
22
|
Requires-Dist: tqdm>=4.46.1
|
|
23
|
-
Requires-Dist: v3d-py-helper>=0.4.1
|
|
23
|
+
Requires-Dist: v3d-py-helper>=0.4.1; python_version < "3.13"
|
|
24
24
|
Provides-Extra: all
|
|
25
25
|
Requires-Dist: beautifulsoup4>=4.11.1; extra == "all"
|
|
26
26
|
Requires-Dist: certifi>=2023.5.7; extra == "all"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swcgeom"
|
|
3
|
-
version = "0.19.
|
|
3
|
+
version = "0.19.1"
|
|
4
4
|
description = "Neuron geometry library for swc format"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -19,7 +19,7 @@ dependencies = [
|
|
|
19
19
|
"tifffile>=2022.8.12",
|
|
20
20
|
"typing-extensions>=4.4.0",
|
|
21
21
|
"tqdm>=4.46.1",
|
|
22
|
-
"v3d-py-helper>=0.4.1",
|
|
22
|
+
"v3d-py-helper>=0.4.1; python_version < '3.13'",
|
|
23
23
|
]
|
|
24
24
|
|
|
25
25
|
[project.optional-dependencies]
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import os
|
|
19
19
|
import re
|
|
20
|
+
import sys
|
|
20
21
|
import warnings
|
|
21
22
|
from abc import ABC, abstractmethod
|
|
22
23
|
from collections.abc import Callable, Iterable
|
|
@@ -28,7 +29,6 @@ import numpy as np
|
|
|
28
29
|
import numpy.typing as npt
|
|
29
30
|
import tifffile
|
|
30
31
|
from typing_extensions import deprecated
|
|
31
|
-
from v3dpy.loaders import PBD, Raw
|
|
32
32
|
|
|
33
33
|
__all__ = ["read_imgs", "save_tiff", "read_images"]
|
|
34
34
|
|
|
@@ -263,25 +263,48 @@ class NrrdImageStack(NDArrayImageStack[ScalarType]):
|
|
|
263
263
|
self.header = header
|
|
264
264
|
|
|
265
265
|
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
if sys.version_info < (3, 13):
|
|
267
|
+
from v3dpy.loaders import PBD, Raw
|
|
268
268
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
cls._loader = loader
|
|
269
|
+
class V3dImageStack(NDArrayImageStack[ScalarType]):
|
|
270
|
+
"""v3d image stack."""
|
|
272
271
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
272
|
+
def __init_subclass__(cls, loader: Raw | PBD) -> None:
|
|
273
|
+
super().__init_subclass__()
|
|
274
|
+
cls._loader = loader
|
|
275
|
+
|
|
276
|
+
def __init__(self, fname: str, *, dtype: ScalarType, **kwargs) -> None:
|
|
277
|
+
r = self._loader()
|
|
278
|
+
imgs = r.load(fname)
|
|
279
|
+
super().__init__(imgs, dtype=dtype, **kwargs)
|
|
280
|
+
|
|
281
|
+
class V3drawImageStack(V3dImageStack[ScalarType], loader=Raw):
|
|
282
|
+
"""v3draw image stack."""
|
|
283
|
+
|
|
284
|
+
class V3dpbdImageStack(V3dImageStack[ScalarType], loader=PBD):
|
|
285
|
+
"""v3dpbd image stack."""
|
|
286
|
+
|
|
287
|
+
else:
|
|
288
|
+
|
|
289
|
+
def _v3d_not_supported(*args, **kwargs):
|
|
290
|
+
raise RuntimeError(
|
|
291
|
+
"v3d-py-helper is not supported in Python 3.13 or newer. See #33"
|
|
292
|
+
)
|
|
293
|
+
|
|
294
|
+
class V3dImageStack:
|
|
295
|
+
"""v3d image stack (disabled due to unsupported Python version)."""
|
|
296
|
+
|
|
297
|
+
__init__ = _v3d_not_supported
|
|
277
298
|
|
|
299
|
+
class V3drawImageStack:
|
|
300
|
+
"""v3draw image stack (disabled due to unsupported Python version)."""
|
|
278
301
|
|
|
279
|
-
|
|
280
|
-
"""v3draw image stack."""
|
|
302
|
+
__init__ = _v3d_not_supported
|
|
281
303
|
|
|
304
|
+
class V3dpbdImageStack:
|
|
305
|
+
"""v3dpbd image stack (disabled due to unsupported Python version)."""
|
|
282
306
|
|
|
283
|
-
|
|
284
|
-
"""v3dpbd image stack."""
|
|
307
|
+
__init__ = _v3d_not_supported
|
|
285
308
|
|
|
286
309
|
|
|
287
310
|
class TeraflyImageStack(ImageStack[ScalarType]):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: swcgeom
|
|
3
|
-
Version: 0.19.
|
|
3
|
+
Version: 0.19.1
|
|
4
4
|
Summary: Neuron geometry library for swc format
|
|
5
5
|
Author-email: yzx9 <pypi@yzx9.xyz>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -20,7 +20,7 @@ Requires-Dist: seaborn>=0.12.0
|
|
|
20
20
|
Requires-Dist: tifffile>=2022.8.12
|
|
21
21
|
Requires-Dist: typing-extensions>=4.4.0
|
|
22
22
|
Requires-Dist: tqdm>=4.46.1
|
|
23
|
-
Requires-Dist: v3d-py-helper>=0.4.1
|
|
23
|
+
Requires-Dist: v3d-py-helper>=0.4.1; python_version < "3.13"
|
|
24
24
|
Provides-Extra: all
|
|
25
25
|
Requires-Dist: beautifulsoup4>=4.11.1; extra == "all"
|
|
26
26
|
Requires-Dist: certifi>=2023.5.7; extra == "all"
|
|
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
|
|
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
|