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

[c++] Push-down spatial metadata in the MultiscaleImage class from Python to C++ #3622

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

jp-dark
Copy link
Collaborator

@jp-dark jp-dark commented Jan 23, 2025

Issue and/or context: sc-62102

Changes:
Write the MultiscaleImage coordinate-space metadata and spatial-encoding metadata in the C++ layer instead of in Python. This leaves the MultiscaleImageMetadata properties to be addressed in a future PR.

Write the coordinate space metadata and spatial encoding version
metadata for the `MultiscaleImage` in the C++ layer instead of the
Python layer.
@jp-dark jp-dark requested review from nguyenv and johnkerl January 23, 2025 21:34
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.

Neat! :)

libtiledbsoma/src/soma/soma_multiscale_image.cc Outdated Show resolved Hide resolved
SPATIAL_ENCODING_VERSION_VAL.c_str(),
true);

// Set coordinate space metadata.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Set coordinate space metadata.
// Set coordinat-space metadata.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think coordinate space should be hyphenated.

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

Project coverage is 86.28%. Comparing base (f3ba4e5) to head (65db753).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3622      +/-   ##
==========================================
+ Coverage   86.26%   86.28%   +0.01%     
==========================================
  Files          55       55              
  Lines        6378     6378              
==========================================
+ Hits         5502     5503       +1     
+ Misses        876      875       -1     
Flag Coverage Δ
python 86.28% <71.42%> (+0.01%) ⬆️

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

Components Coverage Δ
python_api 86.28% <71.42%> (+0.01%) ⬆️
libtiledbsoma ∅ <ø> (∅)

@jp-dark jp-dark merged commit fe8e64d into main Jan 23, 2025
14 checks passed
@jp-dark jp-dark deleted the dark/sc-62102 branch January 23, 2025 21:59
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