diff --git a/niworkflows/utils/bids.py b/niworkflows/utils/bids.py index 1bd923948d3..c642ef5fd1e 100644 --- a/niworkflows/utils/bids.py +++ b/niworkflows/utils/bids.py @@ -263,7 +263,7 @@ def collect_data( # Special case: multi-echo BOLD, grouping echos if ( - group_me + group_echos and "bold" in subj_data and any(["_echo-" in bold for bold in subj_data["bold"]]) ):