-
Notifications
You must be signed in to change notification settings - Fork 10
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
Revise Figure 5 code example #652
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #652 +/- ##
==========================================
+ Coverage 44.89% 47.99% +3.10%
==========================================
Files 71 71
Lines 7311 7296 -15
==========================================
+ Hits 3282 3502 +220
+ Misses 4029 3794 -235 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall good but small changes could polish further. Please see my comments. (I can push these changes)
siibra/features/image/sections.py
Outdated
@@ -83,6 +83,14 @@ def __repr__(self): | |||
def section(self) -> CellbodyStainedSection: | |||
return self._section | |||
|
|||
def get_boundingbox(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fetch_kwargs must be passed
probmaps = region.parcellation.get_map("mni152", "statistical") | ||
region_map = probmaps.get_volume(region) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not
region_map = region.get_regional_map("mni152", "statistical") # this is a volume already
patch_locations = siibra.PointCloud( | ||
[tuple(p.get_boundingbox().center) for p in patches], | ||
space='bigbrain' | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
patch_locations = siibra.PointCloud.union(*[p.get_boundingbox().center for p in patches])
I rewrote the code example to make it closer to the manuscript figure and better understandable:
The PR should work, I tested several times, but please check it.