Skip to content

Commit 8240aaf

Browse files
committed
FIX: Always declare sbref_file variable
1 parent 4a2ea31 commit 8240aaf

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
@@ -242,6 +242,7 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
242242
'Memory resampled/largemem=%.2f/%.2f GB.'),
243243
ref_file, mem_gb['filesize'], bold_tlen, mem_gb['resampled'], mem_gb['largemem'])
244244

245+
sbref_file = None
245246
# For doc building purposes
246247
if layout is None or bold_file == 'bold_preprocesing':
247248
LOGGER.log(25, 'No valid layout: building empty workflow.')
@@ -257,7 +258,6 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
257258
'magnitude2': 'sub-03/ses-2/fmap/sub-03_ses-2_run-1_magnitude2.nii.gz',
258259
}]
259260
run_stc = True
260-
sbref_file = None
261261
multiecho = False
262262
else:
263263
# Find associated sbref, if possible

0 commit comments

Comments
 (0)