Skip to content

Commit 77ca48e

Browse files
committed
fix
1 parent 2d35a96 commit 77ca48e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

nipype/interfaces/freesurfer/utils.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ class Tkregister2InputSpec(FSTraitedSpec):
12071207
noedit = traits.Bool(True, argstr="--noedit", usedefault=True,
12081208
desc='do not open edit window (exit)')
12091209
reg_file = File('register.dat', usedefault=True,
1210-
mandatory=True, argstr="--reg %s",
1210+
mandatory=True, argstr='--reg %s',
12111211
desc='freesurfer-style registration file')
12121212
reg_header = traits.Bool(False, argstr='--regheader',
12131213
desc='compute regstration from headers')
@@ -1266,7 +1266,14 @@ class Tkregister2(FSCommand):
12661266

12671267
def _list_outputs(self):
12681268
outputs = self._outputs().get()
1269-
outputs['reg_file'] = op.abspath(self.inputs.reg_file)
1269+
outputs['reg_file'] = os.path.abspath(self.inputs.reg_file)
12701270
if isdefined(self.inputs.fsl_out):
12711271
outputs['fsl_file'] = op.abspath(self.inputs.fsl_out)
12721272
return outputs
1273+
1274+
def _gen_outfilename(self):
1275+
if isdefined(self.inputs.out_file):
1276+
return os.path.abspath(self.inputs.out_file)
1277+
else:
1278+
_, name, ext = split_filename(self.inputs.in_file)
1279+
return os.path.abspath(name + '_smoothed' + ext)

0 commit comments

Comments
 (0)