Skip to content

Commit b3db93e

Browse files
authored
Merge pull request #1854 from poldracklab/oesteban-patch-1
FIX: Do not run STC if SliceTiming metadata is set but empty
2 parents 5d0c823 + 79f7f89 commit b3db93e

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
@@ -354,7 +354,7 @@ def init_func_preproc_wf(
354354
fmaps = fieldmap_wrangler(layout, ref_file, use_syn=use_syn, force_syn=force_syn)
355355

356356
# Short circuits: (True and True and (False or 'TooShort')) == 'TooShort'
357-
run_stc = ("SliceTiming" in metadata and
357+
run_stc = (bool(metadata.get("SliceTiming")) and
358358
'slicetiming' not in ignore and
359359
(_get_series_len(ref_file) > 4 or "TooShort"))
360360

0 commit comments

Comments
 (0)