Skip to content

Commit 26c3510

Browse files
committed
Merge pull request #1249 from afloren/surface-transform-patch-2
Fix FreeSurfer SurfaceTransform gen out_file
2 parents 6d88cba + 6b7f29d commit 26c3510

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
@@ -356,7 +356,11 @@ def _list_outputs(self):
356356
outputs = self._outputs().get()
357357
outputs["out_file"] = self.inputs.out_file
358358
if not isdefined(outputs["out_file"]):
359-
source = self.inputs.source_file
359+
if isdefined(self.inputs.source_file):
360+
source = self.inputs.source_file
361+
else:
362+
source = self.inputs.source_annot_file
363+
360364
# Some recon-all files don't have a proper extension (e.g. "lh.thickness")
361365
# so we have to account for that here
362366
bad_extensions = [".%s" % e for e in ["area", "mid", "pial", "avg_curv", "curv", "inflated",

0 commit comments

Comments
 (0)