From 54ce09bdc97ec6907b89c9fdbd48a7c7cc61fe05 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Mon, 22 Jul 2019 13:49:03 +0100
Subject: [PATCH] RF: Reference image no longer needs to be in the same space
 as a deformation field

---
 fsl/transform/nonlinear.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/fsl/transform/nonlinear.py b/fsl/transform/nonlinear.py
index 630116ec3..520c5b7a5 100644
--- a/fsl/transform/nonlinear.py
+++ b/fsl/transform/nonlinear.py
@@ -204,9 +204,6 @@ class DeformationField(NonLinearTransform):
 
         NonLinearTransform.__init__(self, image, src, ref, **kwargs)
 
-        if not self.sameSpace(self.ref):
-            raise ValueError('Invalid reference image: {}'.format(self.ref))
-
         self.__defType = defType
 
 
-- 
GitLab