Skip to content

Commit eb61a08

Browse files
committed
RF: Ensure T2w check is bool
1 parent f897e2e commit eb61a08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fmriprep/workflows/bold/fit.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,10 @@ def init_bold_fit_wf(
216216
)
217217

218218
# T2w is not required, but if available, use to improve BOLD -> anat coreg
219-
has_t2w = layout.get(
220-
suffix='T2w', extension='.nii.gz', **config.execution.get().get('bids_filters', {})
219+
has_t2w = bool(
220+
layout.get(
221+
suffix='T2w', extension='.nii.gz', **config.execution.get().get('bids_filters', {})
222+
)
221223
)
222224

223225
basename = os.path.basename(bold_file)

0 commit comments

Comments
 (0)