Skip to content

Commit 6c78ec5

Browse files
tsalooesteban
authored andcommitted
Fix that mistake.
1 parent 39e292e commit 6c78ec5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

niworkflows/interfaces/registration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,13 @@ def _run_interface(self, runtime):
462462

463463
self._results["n_volumes_to_discard"] = n_volumes_to_discard
464464

465-
if multiecho and (len(self.inputs.in_file) < 2):
465+
if self.inputs.multiecho and (len(self.inputs.in_file) < 2):
466466
raise ValueError("Argument 'multiecho' is True but "
467467
"'in_file' has only one element")
468468

469469
out_ref_fname = os.path.join(runtime.cwd, "ref_bold.nii.gz")
470470
if isdefined(self.inputs.sbref_file):
471-
if multiecho and (len(self.inputs.sbref_file) < 2):
471+
if self.inputs.multiecho and (len(self.inputs.sbref_file) < 2):
472472
raise ValueError("Argument 'multiecho' is True but "
473473
"'sbref_file' has only one element")
474474

0 commit comments

Comments
 (0)