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 @@ -2824,7 +2824,10 @@ class VolpadInputSpec(CommandLineInputSpec):
2824
2824
desc = 'output file' ,
2825
2825
genfile = True ,
2826
2826
argstr = '%s' ,
2827
- position = - 1 ,)
2827
+ position = - 1 ,
2828
+ name_source = ['input_file' ],
2829
+ hash_files = False ,
2830
+ name_template = '%s_volpad.mnc' )
2828
2831
2829
2832
verbose = traits .Bool (
2830
2833
desc = 'Print out log messages. Default: False.' ,
@@ -2876,26 +2879,6 @@ class Volpad(CommandLine):
2876
2879
output_spec = VolpadOutputSpec
2877
2880
_cmd = 'volpad'
2878
2881
2879
- def _gen_filename (self , name ):
2880
- if name == 'output_file' :
2881
- output_file = self .inputs .output_file
2882
-
2883
- if isdefined (output_file ):
2884
- return os .path .abspath (output_file )
2885
- else :
2886
- return aggregate_filename (
2887
- [self .inputs .input_file ], 'volpad_output' )
2888
- else :
2889
- raise NotImplemented
2890
-
2891
- def _gen_outfilename (self ):
2892
- return self ._gen_filename ('output_file' )
2893
-
2894
- def _list_outputs (self ):
2895
- outputs = self .output_spec ().get ()
2896
- outputs ['output_file' ] = os .path .abspath (self ._gen_outfilename ())
2897
- return outputs
2898
-
2899
2882
2900
2883
class VolisoInputSpec (CommandLineInputSpec ):
2901
2884
You can’t perform that action at this time.
0 commit comments