Skip to content

Commit 86cf4ac

Browse files
committed
'fsl_out' and 'lta_out' options in TKregister2 should check and add arguments with 'fsl_file' and 'lta_file' respectively
1 parent 75796d5 commit 86cf4ac

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

nipype/interfaces/freesurfer/utils.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1967,8 +1967,14 @@ def _format_arg(self, name, spec, value):
19671967
if name == "lta_in" and self.inputs.invert_lta_in:
19681968
spec = "--lta-inv %s"
19691969
if name in ("fsl_out", "lta_out") and value is True:
1970-
value = self._list_outputs()[name]
1971-
return super(Tkregister2, self)._format_arg(name, spec, value)
1970+
if name == 'fsl_out':
1971+
name_actual = 'fsl_file'
1972+
if name == 'lta_out':
1973+
name_actual = 'lta_file'
1974+
value = self._list_outputs()[name_actual]
1975+
return super(Tkregister2, self)._format_arg(name_actual, spec, value)
1976+
else:
1977+
return super(Tkregister2, self)._format_arg(name, spec, value)
19721978

19731979
def _list_outputs(self):
19741980
outputs = self._outputs().get()

0 commit comments

Comments
 (0)