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 @@ -457,7 +457,10 @@ class CopyInputSpec(CommandLineInputSpec):
457
457
desc = 'output file' ,
458
458
genfile = True ,
459
459
argstr = '%s' ,
460
- position = - 1 ,)
460
+ position = - 1 ,
461
+ name_source = ['input_file' ],
462
+ hash_files = False ,
463
+ name_template = '%s_copy.mnc' )
461
464
462
465
_xor_pixel = ('pixel_values' , 'real_values' )
463
466
@@ -492,26 +495,6 @@ class Copy(CommandLine):
492
495
output_spec = CopyOutputSpec
493
496
_cmd = 'minccopy'
494
497
495
- def _gen_filename (self , name ):
496
- if name == 'output_file' :
497
- output_file = self .inputs .output_file
498
-
499
- if isdefined (output_file ):
500
- return os .path .abspath (output_file )
501
- else :
502
- return aggregate_filename (
503
- [self .inputs .input_file ], 'copy_output' )
504
- else :
505
- raise NotImplemented
506
-
507
- def _gen_outfilename (self ):
508
- return self ._gen_filename ('output_file' )
509
-
510
- def _list_outputs (self ):
511
- outputs = self .output_spec ().get ()
512
- outputs ['output_file' ] = os .path .abspath (self ._gen_outfilename ())
513
- return outputs
514
-
515
498
516
499
class ToEcatInputSpec (CommandLineInputSpec ):
517
500
input_file = File (
You can’t perform that action at this time.
0 commit comments