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 @@ -3524,7 +3524,10 @@ class ReshapeInputSpec(CommandLineInputSpec):
3524
3524
desc = 'output file' ,
3525
3525
genfile = True ,
3526
3526
argstr = '%s' ,
3527
- position = - 1 ,)
3527
+ position = - 1 ,
3528
+ name_source = ['input_file' ],
3529
+ hash_files = False ,
3530
+ name_template = '%s_reshape.mnc' )
3528
3531
3529
3532
verbose = traits .Bool (
3530
3533
desc = 'Print out log messages. Default: False.' ,
@@ -3568,26 +3571,6 @@ class Reshape(CommandLine):
3568
3571
output_spec = ReshapeOutputSpec
3569
3572
_cmd = 'mincreshape'
3570
3573
3571
- def _gen_filename (self , name ):
3572
- if name == 'output_file' :
3573
- output_file = self .inputs .output_file
3574
-
3575
- if isdefined (output_file ):
3576
- return os .path .abspath (output_file )
3577
- else :
3578
- return aggregate_filename (
3579
- [self .inputs .input_file ], 'reshape_output' )
3580
- else :
3581
- raise NotImplemented
3582
-
3583
- def _gen_outfilename (self ):
3584
- return self ._gen_filename ('output_file' )
3585
-
3586
- def _list_outputs (self ):
3587
- outputs = self .output_spec ().get ()
3588
- outputs ['output_file' ] = os .path .abspath (self ._gen_outfilename ())
3589
- return outputs
3590
-
3591
3574
3592
3575
class VolSymmInputSpec (CommandLineInputSpec ):
3593
3576
input_file = traits .File (
You can’t perform that action at this time.
0 commit comments