Skip to content

Commit 841f84a

Browse files
name template for Voliso interface
1 parent a6aa19b commit 841f84a

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

nipype/interfaces/minc/minc.py

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2893,7 +2893,10 @@ class VolisoInputSpec(CommandLineInputSpec):
28932893
desc='output file',
28942894
genfile=True,
28952895
argstr='%s',
2896-
position=-1,)
2896+
position=-1,
2897+
name_source=['input_file'],
2898+
hash_files=False,
2899+
name_template='%s_voliso.mnc')
28972900

28982901
verbose = traits.Bool(
28992902
desc='Print out log messages. Default: False.',
@@ -2938,26 +2941,6 @@ class Voliso(CommandLine):
29382941
output_spec = VolisoOutputSpec
29392942
_cmd = 'voliso'
29402943

2941-
def _gen_filename(self, name):
2942-
if name == 'output_file':
2943-
output_file = self.inputs.output_file
2944-
2945-
if isdefined(output_file):
2946-
return os.path.abspath(output_file)
2947-
else:
2948-
return aggregate_filename(
2949-
[self.inputs.input_file], 'voliso_output')
2950-
else:
2951-
raise NotImplemented
2952-
2953-
def _gen_outfilename(self):
2954-
return self._gen_filename('output_file')
2955-
2956-
def _list_outputs(self):
2957-
outputs = self.output_spec().get()
2958-
outputs['output_file'] = os.path.abspath(self._gen_outfilename())
2959-
return outputs
2960-
29612944

29622945
class GennlxfmInputSpec(CommandLineInputSpec):
29632946
output_file = File(

0 commit comments

Comments
 (0)