Skip to content

Commit 56fbd21

Browse files
author
David Ellis
committed
FIX: Fixes aseg input for Aparc2Aseg.
1 parent 959c57e commit 56fbd21

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

nipype/interfaces/freesurfer/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2840,11 +2840,7 @@ def _format_arg(self, name, spec, value):
28402840
if name == 'aseg':
28412841
# aseg does not take a full filename
28422842
basename = os.path.basename(value).replace('.mgz', '')
2843-
if basename != 'aseg':
2844-
return spec.argstr % basename
2845-
else:
2846-
# aseg.mgz is the default
2847-
return
2843+
return spec.argstr % basename
28482844
elif name == 'out_file':
28492845
return spec.argstr % os.path.abspath(value)
28502846

0 commit comments

Comments
 (0)