From 8366e67839b8d901e6e1184106912867672f1f7d Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauld.mccarthy@gmail.com>
Date: Tue, 21 Oct 2014 16:26:58 +0100
Subject: [PATCH] Qform code is ignored

---
 fsl/data/image.py | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/fsl/data/image.py b/fsl/data/image.py
index 7e12e9ba3..00bfd8e4f 100644
--- a/fsl/data/image.py
+++ b/fsl/data/image.py
@@ -395,18 +395,13 @@ class Image(props.HasProperties):
         
         """
         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
-        elif sform_code > 4:           code = NIFTI_XFORM_UNKNOWN
-        elif sform_code < 0:           code = NIFTI_XFORM_UNKNOWN
+        if   sform_code > 4: code = NIFTI_XFORM_UNKNOWN
+        elif sform_code < 0: code = NIFTI_XFORM_UNKNOWN
 
         # All is well
-        else:                          code = sform_code
+        else:                code = sform_code
 
         return int(code)
 
-- 
GitLab