Skip to content

Conversation

tlambert03
Copy link
Member

@tlambert03 tlambert03 commented Mar 30, 2025

something we've needed here at the QI course...

exposes the ability to set the scale part of the transform (and only the scale for now) on the image being displayed. mostly needed for anisotropic z sampling

may introduce some additional changes needed for the camera centering

Copy link

codecov bot commented Mar 30, 2025

Codecov Report

❌ Patch coverage is 64.70588% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 44.85%. Comparing base (52fcfc6) to head (4c1e4fc).

Files with missing lines Patch % Lines
src/ndv/models/_array_display_model.py 76.19% 5 Missing ⚠️
src/ndv/views/_pygfx/_array_canvas.py 0.00% 4 Missing ⚠️
src/ndv/controllers/_array_viewer.py 50.00% 3 Missing ⚠️

❌ Your patch check has failed because the patch coverage (64.70%) is below the target coverage (85.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #165       +/-   ##
===========================================
- Coverage   86.11%   44.85%   -41.27%     
===========================================
  Files          46       46               
  Lines        5214     5246       +32     
===========================================
- Hits         4490     2353     -2137     
- Misses        724     2893     +2169     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tlambert03
Copy link
Member Author

one challenge this PR generally exposes: how does a user pass data-related metadata (like channel names, scales, etc...). Yes, we support named arrays and we try to get all this info from xarray etc... but i don't want someone to have to create an xarray just to add some metadata. The DataWrapper is the natural place for this to live... but someone shouldn't have to subclass it to customize it (if it's not in the array info itself already).

this PR could just make the visualization possible, without weighing in on the public API

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.

1 participant