-
Notifications
You must be signed in to change notification settings - Fork 29
Make dataset compose voxel-size-aware #8962
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
Conversation
📝 WalkthroughWalkthroughComposeService now derives and propagates voxel sizes from layers, adapting layers and voxel size when no transformations are present. It extends ExploreLayerUtils to access adaptation. getLayerFromComposeLayer returns both layer and voxel size. DataSource construction uses the derived voxel size. adaptLayersAndVoxelSize visibility is reduced to protected. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)app/models/dataset/ComposeService.scala (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🧪 Early access (Sonnet 4.5): enabledWe are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note:
Comment |
@normanrz do you happen to have some real-world test data for this? I tested with a constructed example and it looked ok, but I think some real test data would be helpful. I’m also not sure if this voxel-size auto-detection breaks composing datasets with incompatible voxel sizes, there are now assertions for that. But that feature might still be desired if you know affine transforms to get everything straight again. |
When composing layers from datasets with different voxel sizes, finds a common voxel size and adapts the mags accordingly.
Using the existing functionality from dataset explorers also in compose.
Steps to test:
Issues:
$PR_NUMBER.md
file inunreleased_changes
or use./tools/create-changelog-entry.py
)