From 2b8aa6cf9f0433984c8b74f1fd1aa5ab7756a848 Mon Sep 17 00:00:00 2001
From: Martin Craig <martin.craig@eng.ox.ac.uk>
Date: Tue, 31 Jul 2018 13:36:15 +0100
Subject: [PATCH] Make 'warp' an optional parameter - applywarp can be used to
 just apply affine transformations

---
 fsl/wrappers/fnirt.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/fsl/wrappers/fnirt.py b/fsl/wrappers/fnirt.py
index bd4573373..59ce1b642 100644
--- a/fsl/wrappers/fnirt.py
+++ b/fsl/wrappers/fnirt.py
@@ -41,7 +41,7 @@ def fnirt(src, ref, **kwargs):
 @wutils.fileOrImage('src', 'ref', 'out', 'warp', 'mask')
 @wutils.fileOrArray('premat', 'postmat')
 @wutils.fslwrapper
-def applywarp(src, ref, out, warp, **kwargs):
+def applywarp(src, ref, out, **kwargs):
     """Wrapper for the ``applywarp`` command. """
 
     valmap = {
@@ -55,8 +55,7 @@ def applywarp(src, ref, out, warp, **kwargs):
     cmd = ['applywarp',
            '--in={}'.format(src),
            '--ref={}'.format(ref),
-           '--out={}'.format(out),
-           '--warp={}'.format(warp)]
+           '--out={}'.format(out)]
 
     cmd += wutils.applyArgStyle('--=', valmap=valmap, **kwargs)
 
-- 
GitLab