Skip to content
Snippets Groups Projects
Commit 8366e678 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Qform code is ignored

parent 9297a079
No related branches found
No related tags found
No related merge requests found
...@@ -395,18 +395,13 @@ class Image(props.HasProperties): ...@@ -395,18 +395,13 @@ class Image(props.HasProperties):
""" """
sform_code = self.nibImage.get_header()['sform_code'] sform_code = self.nibImage.get_header()['sform_code']
qform_code = self.nibImage.get_header()['qform_code']
# if the qform and sform codes don't
# match, I don't know what to do
if sform_code != qform_code: code = NIFTI_XFORM_UNKNOWN
# Invalid values # Invalid values
elif sform_code > 4: code = NIFTI_XFORM_UNKNOWN if sform_code > 4: code = NIFTI_XFORM_UNKNOWN
elif sform_code < 0: code = NIFTI_XFORM_UNKNOWN elif sform_code < 0: code = NIFTI_XFORM_UNKNOWN
# All is well # All is well
else: code = sform_code else: code = sform_code
return int(code) return int(code)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment