Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[python] Update spatial API to match somacore 1.0.23 #3274

Merged
merged 3 commits into from
Nov 1, 2024

Conversation

jp-dark
Copy link
Collaborator

@jp-dark jp-dark commented Nov 1, 2024

Update the TileDB-SOMA implementation to support the API changes in somacore 1.0.23.

This is includes:

jp-dark and others added 3 commits November 1, 2024 10:33
- Make subcollection always a positional argument (for consistency).
- Fix docstrings for `create` methods (no default value for
subcollection).
…#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.
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

Attention: Patch coverage is 83.59375% with 21 lines in your changes missing coverage. Please review.

Project coverage is 83.77%. Comparing base (945804c) to head (5b048b2).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3274      +/-   ##
==========================================
- Coverage   83.81%   83.77%   -0.04%     
==========================================
  Files          51       51              
  Lines        5578     5554      -24     
==========================================
- Hits         4675     4653      -22     
+ Misses        903      901       -2     
Flag Coverage Δ
python 83.77% <83.59%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
python_api 83.77% <83.59%> (-0.04%) ⬇️
libtiledbsoma ∅ <ø> (∅)

Copy link
Member

@johnkerl johnkerl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@jp-dark jp-dark merged commit bf62847 into main Nov 1, 2024
31 checks passed
@jp-dark jp-dark deleted the dark/somacore-1.0.23 branch November 1, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants