-
Notifications
You must be signed in to change notification settings - Fork 1.4k
allow dictionary image only and test endianness #1669
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
Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
|
@chrisfoulon I think this should work. Might need to be extended to native endian ("=") if the native endianness is big endian (">"). Can you give this a try and let me know? Looks like you were using 0.4.0 before, so there may be other things in the pipeline that have changed in the meantime, e.g., |
|
Note to self, might be this: if data.dtype.byteorder == "=" and sys.byteorder != "little":
data = data.newbyteorder("<") |
Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
|
@wyli @Nic-Ma Could anyone help me with the CI error? It's complaining about the use of The |
would swap the skip and expand decorators work? |
Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
That seems to have worked, thanks! |
Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
Fixes #1664.
Description
Image meta data seems to cause a problem when a nifti image s big endian. This means that the dictionary
LoadImagedfails for big endian nifti images, whilstLoadImagedoesn't.This is fixed by recursively traversing the meta data and switching any numpy endianness from ">" to "<".
In this PR I've added the option for
image_onlywithLoadImaged.Status
Ready
Types of changes
./runtests.sh --quick.make htmlcommand in thedocs/folder.