ossify 0.2.5__tar.gz → 0.2.6__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.
- {ossify-0.2.5 → ossify-0.2.6}/PKG-INFO +1 -1
- {ossify-0.2.5 → ossify-0.2.6}/pyproject.toml +2 -2
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/__init__.py +1 -1
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/file_io.py +11 -1
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/plot.py +1 -1
- {ossify-0.2.5 → ossify-0.2.6}/.github/workflows/mkdocs_publish.yml +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/.github/workflows/python-package.yml +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/.gitignore +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/.pre-commit-config.yaml +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/LICENSE +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/README.md +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/mkdocs.yml +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/__init__.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/base.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/graph.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/mapping.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/mesh.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/morph.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/points.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/table.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/algorithms.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/base.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/compartment_models/minnie65_ds15_us0_bd0.json +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/compartment_models/v1dd_ds15_us0_bd0.json +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/compartment_models/xgb/minnie65_ds15_us0_bd0.ubj +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/compartment_models/xgb/v1dd_ds15_us0_bd0.ubj +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/compartments.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/data_layers.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/graph_functions.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/plot3d.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/plot_utils.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/structured_prediction.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/sync_classes.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/translate.py +0 -0
- {ossify-0.2.5 → ossify-0.2.6}/src/ossify/utils.py +0 -0
|
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
|
|
|
6
6
|
allow-direct-references = true
|
|
7
7
|
[project]
|
|
8
8
|
name = "ossify"
|
|
9
|
-
version = "0.2.
|
|
9
|
+
version = "0.2.6"
|
|
10
10
|
description = "Mesh and skeleton analysis"
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
requires-python = ">=3.11"
|
|
@@ -95,7 +95,7 @@ default-groups = ["dev", "docs", "lint", "profile", "viz"]
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
[tool.bumpversion]
|
|
98
|
-
current_version = "0.2.
|
|
98
|
+
current_version = "0.2.6"
|
|
99
99
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
|
100
100
|
serialize = ["{major}.{minor}.{patch}"]
|
|
101
101
|
regex = false
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import io
|
|
2
2
|
import os
|
|
3
3
|
import tarfile
|
|
4
|
+
import warnings
|
|
4
5
|
from enum import IntEnum
|
|
5
6
|
from pathlib import Path
|
|
6
7
|
from typing import TYPE_CHECKING, BinaryIO, Optional, Union
|
|
@@ -464,7 +465,16 @@ def load_dataframe(tinfo, tf) -> pd.DataFrame:
|
|
|
464
465
|
Loaded DataFrame
|
|
465
466
|
"""
|
|
466
467
|
df_buf = pa.BufferReader(tf.extractfile(tinfo).read())
|
|
467
|
-
|
|
468
|
+
with warnings.catch_warnings():
|
|
469
|
+
# pandas' read_feather wraps pyarrow.feather.read_feather, which pyarrow
|
|
470
|
+
# >=24 deprecated in favor of pyarrow.ipc.open_file; this is purely an
|
|
471
|
+
# upstream implementation detail pandas hasn't addressed yet.
|
|
472
|
+
warnings.filterwarnings(
|
|
473
|
+
"ignore",
|
|
474
|
+
message=r"pyarrow\.feather\.read_feather is deprecated",
|
|
475
|
+
category=FutureWarning,
|
|
476
|
+
)
|
|
477
|
+
return pd.read_feather(df_buf)
|
|
468
478
|
|
|
469
479
|
|
|
470
480
|
def load_array(tinfo, tf) -> np.ndarray:
|
|
@@ -968,7 +968,7 @@ def plot_points(
|
|
|
968
968
|
# which dominates small synapse markers).
|
|
969
969
|
if "linewidths" not in scatter_kws:
|
|
970
970
|
scatter_kws["linewidths"] = 0
|
|
971
|
-
if isinstance(palette, str):
|
|
971
|
+
if isinstance(palette, str) and colors is not None and not isinstance(colors, str):
|
|
972
972
|
scatter_kws["cmap"] = palette
|
|
973
973
|
if color_norm is not None:
|
|
974
974
|
scatter_kws["vmin"], scatter_kws["vmax"] = color_norm
|
|
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
|