We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee871ba commit 4681775Copy full SHA for 4681775
nipype/interfaces/freesurfer/model.py
@@ -603,11 +603,11 @@ class Concatenate(FSCommand):
603
604
def _list_outputs(self):
605
outputs = self.output_spec().get()
606
- if not isdefined(self.inputs.concatenated_file):
607
- outputs['concatenated_file'] = os.path.join(os.getcwd(),
608
- 'concat_output.nii.gz')
609
- else:
610
- outputs['concatenated_file'] = self.inputs.concatenated_file
+
+ fname = self.inputs.concatenated_file
+ if not isdefined(fname):
+ fname = 'concat_output.nii.gz'
+ outputs['concatenated_file'] = os.path.join(os.getcwd(), fname)
611
return outputs
612
613
def _gen_filename(self, name):
0 commit comments