File tree Expand file tree Collapse file tree 1 file changed +4
-22
lines changed Expand file tree Collapse file tree 1 file changed +4
-22
lines changed Original file line number Diff line number Diff line change @@ -1774,7 +1774,10 @@ class MathInputSpec(CommandLineInputSpec):
1774
1774
desc = 'output file' ,
1775
1775
argstr = '%s' ,
1776
1776
genfile = True ,
1777
- position = - 1 )
1777
+ position = - 1 ,
1778
+ name_source = ['input_files' ],
1779
+ hash_files = False ,
1780
+ name_template = '%s_mincmath.mnc' )
1778
1781
1779
1782
filelist = traits .File (
1780
1783
desc = 'Specify the name of a file containing input file names.' ,
@@ -2173,27 +2176,6 @@ def _parse_inputs(self):
2173
2176
2174
2177
return super (Math , self )._parse_inputs ()
2175
2178
2176
- def _gen_filename (self , name ):
2177
- if name == 'output_file' :
2178
- output_file = self .inputs .output_file
2179
-
2180
- if isdefined (output_file ):
2181
- return os .path .abspath (output_file )
2182
- else :
2183
- return aggregate_filename (
2184
- self .inputs .input_files ,
2185
- 'mincmath_output' ) + '.mnc'
2186
- else :
2187
- raise NotImplemented
2188
-
2189
- def _gen_outfilename (self ):
2190
- return self ._gen_filename ('output_file' )
2191
-
2192
- def _list_outputs (self ):
2193
- outputs = self .output_spec ().get ()
2194
- outputs ['output_file' ] = os .path .abspath (self ._gen_outfilename ())
2195
- return outputs
2196
-
2197
2179
2198
2180
class ResampleInputSpec (CommandLineInputSpec ):
2199
2181
"""
You can’t perform that action at this time.
0 commit comments