Skip to content

Commit

Permalink
[python] Update spatial API to match somacore 1.0.23 (#3274)
Browse files Browse the repository at this point in the history
* Update Scene subcollection API

  - Make subcollection always a positional argument (for consistency).
  - Fix docstrings for `create` methods (no default value for subcollection).

* [python] Update the `MultiscaleImage` to match `somacore` API changes  (#3262)

  - Directly take the `CoordinateSpace` as a creation parameter.
  - Remove confusing `image_type` property/creation parameter. Use `data_axis_order` instead which uses the axis names the user provided.
  - Create the first resolution level when creating the `MultiscaleImage`.
  - Require the `add_new_level` to only add images smaller than the base (level=0) image.
  - Add a `set` method for adding images that exist outside of SOMA.
  - Add a property to check the number of channels in the image.
  - Replace public facing `ImageProperties` class with internal `_LevelProperties` class.
  • Loading branch information
jp-dark authored Nov 1, 2024
1 parent b4ab8d2 commit bf62847
Show file tree
Hide file tree
Showing 11 changed files with 652 additions and 574 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
# Pandas 2.x types (e.g. `pd.Series[Any]`). See `_types.py` or https://github.com/single-cell-data/TileDB-SOMA/issues/2839
# for more info.
- "pandas-stubs>=2"
- "somacore==1.0.22"
- "somacore==1.0.23"
- types-setuptools
args: ["--config-file=apis/python/pyproject.toml", "apis/python/src", "apis/python/devtools"]
pass_filenames: false
Loading

0 comments on commit bf62847

Please sign in to comment.