-
Notifications
You must be signed in to change notification settings - Fork 630
[MAINT] ensure transform on 3D volume (1D surface) images returns 1D arrays #5381
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
👋 @Remi-Gau 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 #5381 +/- ##
=======================================
Coverage 96.83% 96.83%
=======================================
Files 282 282
Lines 38992 38901 -91
Branches 3865 3885 +20
=======================================
- Hits 37757 37671 -86
+ Misses 680 674 -6
- Partials 555 556 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ 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.
To me this is OK, except for one docstring.
thx !
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.
LGTM!
OK I will wait till CI is done and will stop changing it before this baby gets even bigger |
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.
Ok with very minor suggestions.
Surface masker objects can transform both 1D, 2D, | ||
as well as list of 1D or 2D surface image objects. | ||
Transforming a 1D image produces a 1D (features,) array. | ||
All other input will produce a 1D (samples, features) array.. |
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.
All other input will produce a 1D (samples, features) array.. | |
All other input will produce a 1D (samples, features) array. |
but to extract data from :class:`~nilearn.surface.SurfaceImage`. | ||
|
||
They can perform data extraction from 1D surface data (n_vertices), | ||
2D surface data (n_vertices x samples) |
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.
2D surface data (n_vertices x samples) | |
2D surface data (n_vertices, samples) |
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.
Apparently I am late :)
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.
oops sorry
I need to do another pass on this so I can integrate those suggestions
Changes proposed in this pull request:
Ensure the following
for nifti maskers
for surface maskers
Move and refactor tests and integrate them in estimat_check
TODO: