Skip to content

Commit bbc423b

Browse files
authored
FIX: Do not run STC if SliceTiming metadata is set but empty
Currently, the BIDS-Validator would just raise a Warning when metadata contains: ``` { "SliceTiming": [] } Some openneuro datasets have this.
1 parent c94c8db commit bbc423b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fmriprep/workflows/bold/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def init_func_preproc_wf(
357357
fmaps.append({'suffix': 'syn'})
358358

359359
# Short circuits: (True and True and (False or 'TooShort')) == 'TooShort'
360-
run_stc = ("SliceTiming" in metadata and
360+
run_stc = (metadata.get("SliceTiming") and
361361
'slicetiming' not in ignore and
362362
(_get_series_len(ref_file) > 4 or "TooShort"))
363363

0 commit comments

Comments
 (0)