-
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: Use a more reliable test of NIfTIness #784
Conversation
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## master #784 +/- ##
===========================================
- Coverage 63.36% 50.65% -12.72%
===========================================
Files 49 49
Lines 5959 5950 -9
Branches 1169 1143 -26
===========================================
- Hits 3776 3014 -762
- Misses 2001 2822 +821
+ Partials 182 114 -68
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
d98c981
to
4e11ead
Compare
@mgxd This is needed for nipreps/smriprep#325. Would appreciate a review when you get a minute. @tsalo This addresses at least somewhat your issue #778. Please let me know if you have suggestions. |
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.
The change makes sense to me. Thanks for addressing this!
Is it worth including Nifti2Image
s too? I know they're rare, and I don't know if the header check is meant to work with Nifti2Image
s.
In [1]: import nibabel as nb
In [2]: nb.Nifti2Image.mro()
Out[2]:
[nibabel.nifti2.Nifti2Image,
nibabel.nifti1.Nifti1Image,
nibabel.nifti1.Nifti1Pair,
nibabel.analyze.AnalyzeImage,
nibabel.spatialimages.SpatialImage,
nibabel.dataobj_images.DataobjImage,
nibabel.filebasedimages.SerializableImage,
nibabel.filebasedimages.FileBasedImage,
object] |
Oh, awesome! |
Closes #778.