Skip to content

Commit e67ed98

Browse files
committed
ConvertWarp - mandatory inputs are positional
1 parent cee96ff commit e67ed98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/interfaces/fsl/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,10 +1583,10 @@ def _gen_filename(self, name):
15831583

15841584

15851585
class ConvertWarpInputSpec(FSLCommandInputSpec):
1586-
reference = File(exists=True, argstr='--ref=%s', mandatory=True,
1586+
reference = File(exists=True, argstr='--ref=%s', mandatory=True, position=1,
15871587
desc=('Name of a file in target space of the full transform.'))
15881588

1589-
out_file = File(genfile=True, hash_files=False, argstr='--out=%s',
1589+
out_file = File(genfile=True, hash_files=False, argstr='--out=%s', position=-1,
15901590
desc=('Name of output file, containing warps that are the combination of all '
15911591
'those given as arguments. The format of this will be a field-file (rather '
15921592
'than spline coefficients) with any affine components included.'))
@@ -1672,7 +1672,7 @@ class ConvertWarp(FSLCommand):
16721672
>>> warputils.inputs.reference = "T1.nii"
16731673
>>> warputils.inputs.relwarp = True
16741674
>>> warputils.cmdline # doctest: +ELLIPSIS
1675-
'convertwarp --out=.../T1_concatwarps.nii.gz --ref=T1.nii --rel --warp1=warpfield.nii'
1675+
'convertwarp --ref=T1.nii --rel --warp1=warpfield.nii --out=.../T1_concatwarps.nii.gz'
16761676
>>> res = invwarp.run() # doctest: +SKIP
16771677
"""
16781678

0 commit comments

Comments
 (0)