Skip to content

Commit 26610d4

Browse files
committed
Disconnect boldbuffer for ME
1 parent e5d1ad7 commit 26610d4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

fmriprep/workflows/bold/base.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
385385
if run_stc is True: # bool('TooShort') == True, so check True explicitly
386386
bold_stc_wf = init_bold_stc_wf(name='bold_stc_wf', metadata=metadata)
387387
workflow.connect([
388-
(bold_stc_wf, boldbuffer, [('outputnode.stc_file', 'bold_file')]),
389388
(bold_reference_wf, bold_stc_wf, [('outputnode.bold_file', 'inputnode.bold_file'),
390389
('outputnode.skip_vols', 'inputnode.skip_vols')]),
390+
(bold_stc_wf, boldbuffer, [('outputnode.stc_file', 'bold_file')]),
391391
])
392392
else: # bypass STC from original BOLD to the splitter through boldbuffer
393393
workflow.connect([
@@ -415,10 +415,10 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
415415

416416
# MAIN WORKFLOW STRUCTURE #######################################################
417417
workflow.connect([
418-
# BOLD buffer has slice-time corrected if it was run, original otherwise
419-
(boldbuffer, bold_split, [('bold_file', 'in_file')]),
420418
# Generate early reference
421419
(inputnode, bold_reference_wf, [('bold_file', 'inputnode.bold_file')]),
420+
# BOLD buffer has slice-time corrected if it was run, original otherwise
421+
(boldbuffer, bold_split, [('bold_file', 'in_file')]),
422422
# HMC
423423
(bold_reference_wf, bold_hmc_wf, [
424424
('outputnode.raw_ref_image', 'inputnode.raw_ref_image'),
@@ -525,10 +525,14 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
525525
workflow.disconnect([
526526
(inputnode, bold_reference_wf, [
527527
('bold_file', 'inputnode.bold_file')]),
528+
(bold_reference_wf, boldbuffer, [
529+
('outputnode.bold_file', 'bold_file')]),
528530
])
529531
workflow.connect([
530532
(me_first_echo, bold_reference_wf, [
531-
('first_image', 'inputnode.bold_file')])
533+
('first_image', 'inputnode.bold_file')]),
534+
(inputnode, boldbuffer, [
535+
('bold_file', 'bold_file')]),
532536
])
533537

534538
if t2s_coreg:

0 commit comments

Comments
 (0)