Skip to content

Commit e262e78

Browse files
author
David Ellis
committed
FIX: Switches the format of arguments for mris_make_surfaces to basename for input images.
1 parent 490446e commit e262e78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/freesurfer/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1984,7 +1984,7 @@ def _format_arg(self, name, spec, value):
19841984
basename = os.path.basename(value)
19851985
# whent the -mgz flag is specified, it assumes the mgz extension
19861986
if self.inputs.mgz:
1987-
prefix = value.rstrip('.mgz')
1987+
prefix = basename.rstrip('.mgz')
19881988
else:
19891989
prefix = basename
19901990
if prefix == 'aseg':

0 commit comments

Comments
 (0)