-
Notifications
You must be signed in to change notification settings - Fork 80
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
Update hemisphere slicing #375
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #375 +/- ##
==========================================
- Coverage 88.13% 88.06% -0.08%
==========================================
Files 27 27
Lines 1214 1215 +1
==========================================
Hits 1070 1070
- Misses 144 145 +1 ☔ View full report in Codecov by Sentry. |
Thanks @IgorTatarnikov! This looks good to me, but I won't review until it's marked as "ready for review". I checked, and it also fixes this image.sc issue. |
I unmarked it because this approach fails with the new axolotl atlas, so I was going to do some more investigating! |
This fix works appropriately if the axolotl and other asymmetric atlases have the correct metadata tag. I've opened brainglobe/brainglobe-atlasapi#359 to track this issue. However, I believe this PR is ready to go in. |
Great, thanks @IgorTatarnikov. I'll merge this then release. |
Before submitting a pull request (PR), please read the contributing guide.
Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)
Description
What is this PR
Why is this PR needed?
See the discussion in brainglobe/brainglobe-atlasapi#330
What does this PR do?
If the atlas is marked as symmetrical in the metadata the midpoint is now calculated by taking the mean of the root mesh bounds for each axis. If the atlas isn't marked as symmetrical the previous behaviour is maintained.
References
brainglobe/brainglobe-atlasapi#330
How has this PR been tested?
Tested locally by visual inspection.
For an asymmetric atlas:
For symmetric atlases:
Is this a breaking change?
No
Checklist: