Skip to content

Commit 96c3852

Browse files
committed
fix: add flexibility as to whether group multiecho
1 parent 56b27aa commit 96c3852

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

niworkflows/utils/bids.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def collect_data(
167167
session_id=None,
168168
task=None,
169169
echo=None,
170+
group_me=True,
170171
bids_validate=True,
171172
bids_filters=None,
172173
queries=None,
@@ -261,7 +262,11 @@ def collect_data(
261262
}
262263

263264
# Special case: multi-echo BOLD, grouping echos
264-
if any(["_echo-" in bold for bold in subj_data["bold"]]):
265+
if (
266+
group_me
267+
and "bold" in subj_data
268+
and any(["_echo-" in bold for bold in subj_data["bold"]])
269+
):
265270
subj_data["bold"] = group_multiecho(subj_data["bold"])
266271

267272
return subj_data, layout

0 commit comments

Comments
 (0)