File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
nipype/interfaces/freesurfer Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ class SurfaceTransformInputSpec(FSTraitedSpec):
363
363
source_type = traits .Enum (filetypes , argstr = '--sfmt %s' ,
364
364
requires = ['source_file' ],
365
365
desc = "source file format" )
366
- target_type = traits .Enum (filetypes , argstr = '--tfmt %s' ,
366
+ target_type = traits .Enum (filetypes + implicit_filetypes , argstr = '--tfmt %s' ,
367
367
desc = "output format" )
368
368
reshape = traits .Bool (argstr = "--reshape" ,
369
369
desc = "reshape output surface to conform with Nifti" )
@@ -400,6 +400,11 @@ class SurfaceTransform(FSCommand):
400
400
input_spec = SurfaceTransformInputSpec
401
401
output_spec = SurfaceTransformOutputSpec
402
402
403
+ def _format_arg (self , name , spec , value ):
404
+ if name == "target_type" and value in implicit_filetypes :
405
+ return ""
406
+ return super (SurfaceTransform , self )._format_arg (name , spec , value )
407
+
403
408
def _list_outputs (self ):
404
409
outputs = self ._outputs ().get ()
405
410
outputs ["out_file" ] = self .inputs .out_file
You can’t perform that action at this time.
0 commit comments