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.
Files changed (35) hide show
  1. {ossify-0.2.5 → ossify-0.2.6}/PKG-INFO +1 -1
  2. {ossify-0.2.5 → ossify-0.2.6}/pyproject.toml +2 -2
  3. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/__init__.py +1 -1
  4. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/file_io.py +11 -1
  5. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/plot.py +1 -1
  6. {ossify-0.2.5 → ossify-0.2.6}/.github/workflows/mkdocs_publish.yml +0 -0
  7. {ossify-0.2.5 → ossify-0.2.6}/.github/workflows/python-package.yml +0 -0
  8. {ossify-0.2.5 → ossify-0.2.6}/.gitignore +0 -0
  9. {ossify-0.2.5 → ossify-0.2.6}/.pre-commit-config.yaml +0 -0
  10. {ossify-0.2.5 → ossify-0.2.6}/LICENSE +0 -0
  11. {ossify-0.2.5 → ossify-0.2.6}/README.md +0 -0
  12. {ossify-0.2.5 → ossify-0.2.6}/mkdocs.yml +0 -0
  13. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/__init__.py +0 -0
  14. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/base.py +0 -0
  15. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/graph.py +0 -0
  16. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/mapping.py +0 -0
  17. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/mesh.py +0 -0
  18. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/morph.py +0 -0
  19. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/points.py +0 -0
  20. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/_sync/table.py +0 -0
  21. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/algorithms.py +0 -0
  22. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/base.py +0 -0
  23. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/compartment_models/minnie65_ds15_us0_bd0.json +0 -0
  24. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/compartment_models/v1dd_ds15_us0_bd0.json +0 -0
  25. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/compartment_models/xgb/minnie65_ds15_us0_bd0.ubj +0 -0
  26. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/compartment_models/xgb/v1dd_ds15_us0_bd0.ubj +0 -0
  27. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/compartments.py +0 -0
  28. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/data_layers.py +0 -0
  29. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/graph_functions.py +0 -0
  30. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/plot3d.py +0 -0
  31. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/plot_utils.py +0 -0
  32. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/structured_prediction.py +0 -0
  33. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/sync_classes.py +0 -0
  34. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/translate.py +0 -0
  35. {ossify-0.2.5 → ossify-0.2.6}/src/ossify/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ossify
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: Mesh and skeleton analysis
5
5
  Author-email: Casey Schneider-Mizell <caseysm@gmail.com>
6
6
  License-File: LICENSE
@@ -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.5"
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.5"
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
@@ -5,7 +5,7 @@ from .base import *
5
5
  from .file_io import *
6
6
  from .translate import *
7
7
 
8
- __version__ = "0.2.5"
8
+ __version__ = "0.2.6"
9
9
 
10
10
 
11
11
  def __getattr__(name):
@@ -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
- return pd.read_feather(df_buf)
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