Skip to content

Commit 5d087f0

Browse files
committed
Adding positional information to ApplyWarp interface
1 parent 394ac0d commit 5d087f0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -942,18 +942,18 @@ def write_config(self, configfile):
942942
class ApplyWarpInputSpec(FSLCommandInputSpec):
943943
in_file = File(exists=True, argstr='--in=%s',
944944
mandatory=True,
945-
desc='image to be warped')
945+
desc='image to be warped', position=0)
946946
out_file = File(argstr='--out=%s', genfile=True,
947-
desc='output filename', hash_files=False)
947+
desc='output filename', hash_files=False, position=2)
948948
ref_file = File(exists=True, argstr='--ref=%s',
949949
mandatory=True,
950-
desc='reference image')
950+
desc='reference image', position=1)
951951
field_file = File(exists=True, argstr='--warp=%s',
952-
desc='file containing warp field')
952+
desc='file containing warp field', position=3, mandatory=True)
953953
abswarp = traits.Bool(argstr='--abs', xor=['relwarp'],
954954
desc="treat warp field as absolute: x' = w(x)")
955955
relwarp = traits.Bool(argstr='--rel', xor=['abswarp'],
956-
desc="treat warp field as relative: x' = x + w(x)")
956+
desc="treat warp field as relative: x' = x + w(x)", position=-1)
957957
datatype = traits.Enum('char', 'short', 'int', 'float', 'double',
958958
argstr='--datatype=%s',
959959
desc='Force output data type [char short int float double].')
@@ -970,7 +970,7 @@ class ApplyWarpInputSpec(FSLCommandInputSpec):
970970
desc='filename for mask image (in reference space)')
971971
interp = traits.Enum(
972972
'nn', 'trilinear', 'sinc', 'spline', argstr='--interp=%s',
973-
desc='interpolation method')
973+
desc='interpolation method', position=-2)
974974

975975

976976
class ApplyWarpOutputSpec(TraitedSpec):

0 commit comments

Comments
 (0)