@@ -1467,7 +1467,7 @@ class WarpUtilsInputSpec(FSLCommandInputSpec):
1467
1467
'would typically be the file that was specified '
1468
1468
'with the --in argument when running fnirt.' ))
1469
1469
1470
- out_format = traits .Either ('field ' , 'spline ' , argstr = '--outformat=%s' ,
1470
+ out_format = traits .Either ('spline ' , 'field ' , argstr = '--outformat=%s' ,
1471
1471
desc = ('Specifies the output format. If set to field (default) '
1472
1472
'the output will be a (4D) field-file. If set to spline '
1473
1473
'the format will be a (4D) file of spline coefficients.' ))
@@ -1511,10 +1511,8 @@ class WarpUtilsInputSpec(FSLCommandInputSpec):
1511
1511
'stored separately from the displacements).' ))
1512
1512
1513
1513
class WarpUtilsOutputSpec (TraitedSpec ):
1514
- out_file = File (exists = True ,
1515
- desc = ('Name of output file, containing the warp as field or coefficients.' ))
1516
- out_jacobian = File (exists = True ,
1517
- desc = ('Name of output file, containing the map of the determinant of '
1514
+ out_file = File (desc = ('Name of output file, containing the warp as field or coefficients.' ))
1515
+ out_jacobian = File (desc = ('Name of output file, containing the map of the determinant of '
1518
1516
'the Jacobian' ))
1519
1517
1520
1518
@@ -1557,6 +1555,8 @@ def _parse_inputs(self, skip=None):
1557
1555
trait_spec = self .inputs .trait ('out_jacobian' )
1558
1556
trait_spec .name_source = ['in_file' ]
1559
1557
trait_spec .name_template = '%s_jac'
1558
+ else :
1559
+ skip += ['out_jacobian' ]
1560
1560
1561
1561
skip += ['write_jacobian' ]
1562
1562
return super (WarpUtils , self )._parse_inputs (skip = skip )
0 commit comments