8000 Fix bugs with `fsl_out=True` and `lta_out=True` by jadecci · Pull Request #3583 · nipy/nipype · GitHub
[go: up one dir, main page]

Skip to content

Fix bugs with fsl_out=True and lta_out=True #3583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
'fsl_out' and 'lta_out' options in TKregister2 should check and add a…
…rguments with 'fsl_file' and 'lta_file' respectively
  • Loading branch information
jadecci committed Jun 26, 2023
commit 86cf4acdc969a47d5ad8d738925e1742457e4374
10 changes: 8 additions & 2 deletions nipype/interfaces/freesurfer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1967,8 +1967,14 @@ def _format_arg(self, name, spec, value):
if name == "lta_in" and self.inputs.invert_lta_in:
spec = "--lta-inv %s"
if name in ("fsl_out", "lta_out") and value is True:
value = self._list_outputs()[name]
return super(Tkregister2, self)._format_arg(name, spec, value)
if name == 'fsl_out':
name_actual = 'fsl_file'
if name == 'lta_out':
name_actual = 'lta_file'
value = self._list_outputs()[name_actual]
return super(Tkregister2, self)._format_arg(name_actual, spec, value)
else:
return super(Tkregister2, self)._format_arg(name, spec, value)

def _list_outputs(self):
outputs = self._outputs().get()
Expand Down
0