Use ensure_list for backwards compatibility.
@@ -6,6 +6,7 @@ from pkg_resources import resource_filename as pkgr_fn
from nipype.pipeline import engine as pe
from nipype.interfaces import utility as niu, fsl, afni
+from nipype.utils.filemanip import ensure_list
from templateflow.api import get as get_template
@@ -163,8 +164,8 @@ using a custom methodology of *fMRIPrep*.
(inputnode, enhance_and_skullstrip_bold_wf, [
("bold_mask", "inputnode.pre_mask"),
]),
- (inputnode, validate, [("bold_file", "in_file")]),
- (inputnode, gen_ref, [("sbref_file", "sbref_file")]),
+ (inputnode, validate, [(("bold_file", ensure_list), "in_file")]),
+ (inputnode, gen_ref, [(("sbref_file", ensure_list), "sbref_file")]),
(inputnode, calc_dummy_scans, [("dummy_scans", "dummy_scans")]),
(validate, gen_ref, [("out_file", "in_file")]),
(gen_ref, enhance_and_skullstrip_bold_wf, [
