@@ -1583,10 +1583,10 @@ def _gen_filename(self, name):
1583
1583
1584
1584
1585
1585
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 ,
1587
1587
desc = ('Name of a file in target space of the full transform.' ))
1588
1588
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 ,
1590
1590
desc = ('Name of output file, containing warps that are the combination of all '
1591
1591
'those given as arguments. The format of this will be a field-file (rather '
1592
1592
'than spline coefficients) with any affine components included.' ))
@@ -1672,7 +1672,7 @@ class ConvertWarp(FSLCommand):
1672
1672
>>> warputils.inputs.reference = "T1.nii"
1673
1673
>>> warputils.inputs.relwarp = True
1674
1674
>>> 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 '
1676
1676
>>> res = invwarp.run() # doctest: +SKIP
1677
1677
"""
1678
1678
0 commit comments