Skip to content

Commit 4681775

Browse files
committed
FIX: Use relative path for concatenated_file input to Concatenate()
1 parent ee871ba commit 4681775

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nipype/interfaces/freesurfer/model.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -603,11 +603,11 @@ class Concatenate(FSCommand):
603603

604604
def _list_outputs(self):
605605
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
606+
607+
fname = self.inputs.concatenated_file
608+
if not isdefined(fname):
609+
fname = 'concat_output.nii.gz'
610+
outputs['concatenated_file'] = os.path.join(os.getcwd(), fname)
611611
return outputs
612612

613613
def _gen_filename(self, name):

0 commit comments

Comments
 (0)