Skip to content

Commit c31979b

Browse files
committed
Listify the echo index.
1 parent a58f1e8 commit c31979b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fmriprep/utils/bids.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ def dismiss_echo(entities=None):
332332
if entities is None:
333333
entities = []
334334

335-
if (config.execution.echo_idx is None) or (len(config.execution.echo_idx) > 2):
335+
echo_idx = config.execution.echo_idx
336+
if (echo_idx is None) or (len(listify(echo_idx)) > 2):
336337
entities.append("echo")
337338

338339
return entities

0 commit comments

Comments
 (0)