-
Notifications
You must be signed in to change notification settings - Fork 95
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
Integer-based output images are unreadable with AFNI #757
Comments
Update: it's not
Either fix is relatively straightforward since we have a centralized way of loading and saving files; we just have to read override the default for |
I think it's fine to READ
|
I completely agree with what @handwerkerd suggests. The loss in precision is, in my opinion, negligible and users will only notice the lighter file sizes. |
Agreed. @handwerkerd your solution sounds good to me. Is anyone willing to tackle this in a new PR? |
Alright, I'll open a PR to implement @handwerkerd's suggestion today. |
Summary
@handwerkerd noticed in #736 that the adaptive mask output is unreadable in AFNI and MicroGL. This appears to be due to the fact that the reference image contains floats, so there may be a mismatch between the image header and the data.
This stems from #736 (comment).
Additional Detail
@jbteves thinks that
new_img_like
(nilearn's function) might be coercing the datatype incorrectly, so he will look into that element. If there is a bug on nilearn's side and we can get it fixed, then we'll need to update our requirements (and wait on the next nilearn release).In the meantime, we will coerce the data to float and save that in the next release, then try to address the underlying issue for the release after that.
Next Steps
new_nii_like
when creating new images as a patch for the next release.The text was updated successfully, but these errors were encountered: