Skip to content

Commit a3bfdaf

Browse files
committed
Remove position from --warp argument, not necessary
1 parent 5d087f0 commit a3bfdaf

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -941,19 +941,19 @@ def write_config(self, configfile):
941941

942942
class ApplyWarpInputSpec(FSLCommandInputSpec):
943943
in_file = File(exists=True, argstr='--in=%s',
944-
mandatory=True,
945-
desc='image to be warped', position=0)
946-
out_file = File(argstr='--out=%s', genfile=True,
947-
desc='output filename', hash_files=False, position=2)
944+
mandatory=True, position=0,
945+
desc='image to be warped')
946+
out_file = File(argstr='--out=%s', genfile=True, position=2,
947+
desc='output filename', hash_files=False)
948948
ref_file = File(exists=True, argstr='--ref=%s',
949-
mandatory=True,
950-
desc='reference image', position=1)
949+
mandatory=True, position=1,
950+
desc='reference image')
951951
field_file = File(exists=True, argstr='--warp=%s',
952-
desc='file containing warp field', position=3, mandatory=True)
952+
desc='file containing warp field')
953953
abswarp = traits.Bool(argstr='--abs', xor=['relwarp'],
954954
desc="treat warp field as absolute: x' = w(x)")
955-
relwarp = traits.Bool(argstr='--rel', xor=['abswarp'],
956-
desc="treat warp field as relative: x' = x + w(x)", position=-1)
955+
relwarp = traits.Bool(argstr='--rel', xor=['abswarp'], position=-1,
956+
desc="treat warp field as relative: x' = x + w(x)")
957957
datatype = traits.Enum('char', 'short', 'int', 'float', 'double',
958958
argstr='--datatype=%s',
959959
desc='Force output data type [char short int float double].')
@@ -969,8 +969,8 @@ class ApplyWarpInputSpec(FSLCommandInputSpec):
969969
mask_file = File(exists=True, argstr='--mask=%s',
970970
desc='filename for mask image (in reference space)')
971971
interp = traits.Enum(
972-
'nn', 'trilinear', 'sinc', 'spline', argstr='--interp=%s',
973-
desc='interpolation method', position=-2)
972+
'nn', 'trilinear', 'sinc', 'spline', argstr='--interp=%s', position=-2,
973+
desc='interpolation method')
974974

975975

976976
class ApplyWarpOutputSpec(TraitedSpec):

0 commit comments

Comments
 (0)