Skip to content

Commit e497b0f

Browse files
authored
Merge pull request #3396 from fabioboh/master
[FIX] small edits to my previous pull request (PR #3394) due to bugs revealed when running within my nipype workflow
2 parents eab4b2a + f4691be commit e497b0f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nipype/interfaces/spm/preprocess.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -339,18 +339,17 @@ def _format_arg(self, opt, spec, val):
339339

340340
if opt in ["in_files", "vdmfile"]:
341341
return scans_for_fname(ensure_list(val))
342-
return super(FieldMap, self)._format_arg(opt, spec, val)
342+
return super(ApplyVDM, self)._format_arg(opt, spec, val)
343343

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

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

349-
return [{"applymap": einputs[0]}]
349+
return [{"applyvdm": einputs[0]}]
350350

351351
def _list_outputs(self):
352352
outputs = self._outputs().get()
353-
jobtype = self.inputs.jobtype
354353
resliced_all = self.inputs.write_which[0] > 0
355354
resliced_mean = self.inputs.write_which[1] > 0
356355
if resliced_mean:

0 commit comments

Comments
 (0)