-
Notifications
You must be signed in to change notification settings - Fork 52
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
FIX: Coerce MGHImage
s to Nifti1Image
s when plotting
#769
Conversation
This fixed the errors previously encountered in the nibabies runs |
We should report this upstream to nilearn, as well. Workaround is fine because all we care about is data/affine, but they at least used to be able to handle |
@effigies - Looks like it needs to be a NiftiImage, so might as well coerce. https://nilearn.github.io/stable/modules/generated/nilearn.plotting.plot_anat.html#nilearn.plotting.plot_anat |
https://nilearn.github.io/stable/manipulating_images/input_output.html#niimg-like-objects
|
I'm +1 for merging rather than relying on people not to have this specific version of nilearn. |
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
c7a532f
to
5bf26e5
Compare
Supercedes nipreps/smriprep#317