Skip to content
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

[FIX] small edits to my previous pull request (PR #3394) due to bugs revealed when running within my nipype workflow #3396

Merged
merged 3 commits into from
Oct 25, 2021
Merged
Changes from all commits
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
5 changes: 2 additions & 3 deletions nipype/interfaces/spm/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,18 +339,17 @@ def _format_arg(self, opt, spec, val):

if opt in ["in_files", "vdmfile"]:
return scans_for_fname(ensure_list(val))
return super(FieldMap, self)._format_arg(opt, spec, val)
return super(ApplyVDM, self)._format_arg(opt, spec, val)

def _parse_inputs(self):
"""validate spm fieldmap options if set to None ignore"""

einputs = super(ApplyVDM, self)._parse_inputs()

return [{"applymap": einputs[0]}]
return [{"applyvdm": einputs[0]}]

def _list_outputs(self):
outputs = self._outputs().get()
jobtype = self.inputs.jobtype
resliced_all = self.inputs.write_which[0] > 0
resliced_mean = self.inputs.write_which[1] > 0
if resliced_mean:
Expand Down