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 @@ -2740,7 +2740,10 @@ class VolcentreInputSpec(CommandLineInputSpec):
2740
2740
desc = 'output file' ,
2741
2741
genfile = True ,
2742
2742
argstr = '%s' ,
2743
- position = - 1 ,)
2743
+ position = - 1 ,
2744
+ name_source = ['input_file' ],
2745
+ hash_files = False ,
2746
+ name_template = '%s_volcentre.mnc' )
2744
2747
2745
2748
verbose = traits .Bool (
2746
2749
desc = 'Print out log messages. Default: False.' ,
@@ -2785,26 +2788,6 @@ class Volcentre(CommandLine):
2785
2788
output_spec = VolcentreOutputSpec
2786
2789
_cmd = 'volcentre'
2787
2790
2788
- def _gen_filename (self , name ):
2789
- if name == 'output_file' :
2790
- output_file = self .inputs .output_file
2791
-
2792
- if isdefined (output_file ):
2793
- return os .path .abspath (output_file )
2794
- else :
2795
- return aggregate_filename (
2796
- [self .inputs .input_file ], 'volcentre_output' )
2797
- else :
2798
- raise NotImplemented
2799
-
2800
- def _gen_outfilename (self ):
2801
- return self ._gen_filename ('output_file' )
2802
-
2803
- def _list_outputs (self ):
2804
- outputs = self .output_spec ().get ()
2805
- outputs ['output_file' ] = os .path .abspath (self ._gen_outfilename ())
2806
- return outputs
2807
-
2808
2791
2809
2792
class VolpadInputSpec (CommandLineInputSpec ):
2810
2793
"""
You can’t perform that action at this time.
0 commit comments