-
Notifications
You must be signed in to change notification settings - Fork 613
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
[ENH] Implement surface maps masker #4830
base: main
Are you sure you want to change the base?
Conversation
👋 @man-shu Thanks for creating a PR! Until this PR is ready for review, you can include the [WIP] tag in its title, or leave it as a github draft. Please make sure it is compliant with our contributing guidelines. In particular, be sure it checks the boxes listed below.
For new features:
For bug fixes:
We will review it as quick as possible, feel free to ping us with questions if needed. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4830 +/- ##
==========================================
- Coverage 93.62% 93.41% -0.21%
==========================================
Files 135 137 +2
Lines 17105 17269 +164
Branches 2954 2976 +22
==========================================
+ Hits 16014 16132 +118
- Misses 579 617 +38
- Partials 512 520 +8 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
This looks quit good, but coverage could still be improved.
@pytest.fixture | ||
def surf_maps_img(surf_mesh): | ||
"""Return a sample surface map image using the sample mesh. | ||
Has 4 different overlapping regions per hemisphere. |
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.
Wouldn't it be better to have different numbers of regions per hemisphere ?
------- | ||
output : :obj:`numpy.ndarray` | ||
Signal for each element. | ||
shape: (img data shape, total number of vertices) |
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.
does not sound right.
maps_img_ : :obj:`~numpy.ndarray` | ||
The maps image converted to a numpy array by concatenating the \ | ||
data of both hemispheres/parts. | ||
shape: (n_vertices, n_regions) |
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.
What is the distinction between n_regions and self.n_elements ?
Parcellations
to work with surface data #4829Parcellations
andDictLearning
to work with Surface API #4756Changes proposed in this pull request:
SurfaceMapsMasker
object: