Skip to content

Commit 2914140

Browse files
committed
Adjust naming in _list_outputs.
1 parent 8fe4cf5 commit 2914140

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nipype/interfaces/freesurfer/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,11 @@ class MRIsCombine(FSCommand):
10031003

10041004
def _list_outputs(self):
10051005
outputs = self.output_spec().get()
1006-
outputs['out_file'] = self.inputs.out_file
1006+
if any(self.inputs.out_file.startswith(pre) for pre in ['lh.', 'rh.']):
1007+
outputs['out_file'] = self.inputs.out_file
1008+
else:
1009+
outputs['out_file'] = 'rh.' + self.inputs.out_file
1010+
10071011
return outputs
10081012

10091013

0 commit comments

Comments
 (0)