File tree Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,10 @@ class ConvertInputSpec(CommandLineInputSpec):
382
382
desc = 'output file' ,
383
383
genfile = True ,
384
384
argstr = '%s' ,
385
- position = - 1 ,)
385
+ position = - 1 ,
386
+ name_source = ['input_file' ],
387
+ hash_files = False ,
388
+ name_template = '%s_convert_output.mnc' )
386
389
387
390
clobber = traits .Bool (
388
391
desc = 'Overwrite existing file.' ,
@@ -441,26 +444,6 @@ class Convert(CommandLine):
441
444
output_spec = ConvertOutputSpec
442
445
_cmd = 'mincconvert'
443
446
444
- def _gen_filename (self , name ):
445
- if name == 'output_file' :
446
- output_file = self .inputs .output_file
447
-
448
- if isdefined (output_file ):
449
- return os .path .abspath (output_file )
450
- else :
451
- return aggregate_filename (
452
- [self .inputs .input_file ], 'convert_output' )
453
- else :
454
- raise NotImplemented
455
-
456
- def _gen_outfilename (self ):
457
- return self ._gen_filename ('output_file' )
458
-
459
- def _list_outputs (self ):
460
- outputs = self .output_spec ().get ()
461
- outputs ['output_file' ] = os .path .abspath (self ._gen_outfilename ())
462
- return outputs
463
-
464
447
465
448
class CopyInputSpec (CommandLineInputSpec ):
466
449
input_file = File (
You can’t perform that action at this time.
0 commit comments