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 add dtype option for NiftiMasker #1711
Conversation
You're on fire!!! That's awesome!! I don't promise that we merge this PR before the release, but let's see. |
Any chance that I can convince you to add this for the other maskers in input_data? Let's not do it in things like CanICA for now, as we'll need , but the other maskers would need it for consistency. And maybe a note (directive ".. topic:: ") in the documentation, for instance on http://nilearn.github.io/manipulating_images/masker_objects.html#common-data-preparation-steps-smoothing-filtering-resampling Also, this needs an entry in whats_new. |
Sure
OK ! |
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.
A test would be welcome ! LGTm otherwise.
Could you rebase or merge on master, to get the tests to pass? |
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 is great!
We still need the added paragraph to the discussion, as mentioned in my above review, as well as as an entry in the whats_new.rst file. Something important is that the entry in the whats_new should state that there is a change in default behavior: now nifti images will more often get cast to float32.
I'm doing it ! But the default dtype option right now is |
Codecov Report
@@ Coverage Diff @@
## master #1711 +/- ##
==========================================
+ Coverage 94.86% 94.88% +0.02%
==========================================
Files 134 134
Lines 16925 16954 +29
==========================================
+ Hits 16056 16087 +31
+ Misses 869 867 -2
Continue to review full report at Codecov.
|
This PR is open for reviews ! |
LGTM. +1 for merge when CI is green. |
Merging! |
This PR aims at solving issue #1669
I only used
_utils.check_niimg
which already has thisdtype
feature and is used in bothNiftiMasker
andMultiNiftiMasker