Skip to content

Commit a8630f9

Browse files
committed
Partially revert "DOC/RF: Improve graph intelligibility"
This partially reverts commit 617b2a1.
1 parent fa8c85c commit a8630f9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

fmriprep/workflows/bold/fit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ def init_bold_fit_wf(
342342
config.loggers.workflow.info("Stage 1: Adding HMC boldref workflow")
343343
hmc_boldref_wf = init_raw_boldref_wf(
344344
name="hmc_boldref_wf",
345+
bold_file=bold_file,
345346
multiecho=multiecho,
346347
)
347348
hmc_boldref_wf.inputs.inputnode.dummy_scans = config.workflow.dummy_scans
@@ -356,7 +357,6 @@ def init_bold_fit_wf(
356357

357358
# fmt:off
358359
workflow.connect([
359-
(inputnode, hmc_boldref_wf, [('bold_file', 'inputnode.bold_file')]),
360360
(hmc_boldref_wf, hmcref_buffer, [
361361
("outputnode.bold_file", "bold_file"),
362362
("outputnode.boldref", "boldref"),

fmriprep/workflows/bold/reference.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131

3232
def init_raw_boldref_wf(
33+
bold_file=None,
3334
multiecho=False,
3435
name="raw_boldref_wf",
3536
):
@@ -52,6 +53,8 @@ def init_raw_boldref_wf(
5253
5354
Parameters
5455
----------
56+
bold_file : :obj:`str`
57+
BOLD series NIfTI file
5558
multiecho : :obj:`bool`
5659
If multiecho data was supplied, data from the first echo will be selected
5760
name : :obj:`str`
@@ -103,6 +106,10 @@ def init_raw_boldref_wf(
103106
name="outputnode",
104107
)
105108

109+
# Simplify manually setting input image
110+
if bold_file is not None:
111+
inputnode.inputs.bold_file = bold_file
112+
106113
val_bold = pe.Node(
107114
ValidateImage(),
108115
name="val_bold",

0 commit comments

Comments
 (0)