Skip to content

Commit

Permalink
Merge pull request #3396 from fabioboh/master
Browse files Browse the repository at this point in the history
[FIX] small edits to my previous pull request (PR #3394) due to bugs revealed when running within my nipype workflow
  • Loading branch information
effigies authored Oct 25, 2021
2 parents eab4b2a + f4691be commit e497b0f
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit e497b0f

Please sign in to comment.