Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mathias Goncalves <mathiasg@stanford.edu>
  • Loading branch information
oesteban and mgxd committed Oct 10, 2022
1 parent e9a6f35 commit 1a9aa1a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fmriprep/workflows/bold/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,6 @@ def init_func_preproc_wf(bold_file, has_fieldmap=False):
if "fieldmaps" in config.execution.debug:
# Generate additional reportlets to assess SDC
from sdcflows.interfaces.reportlets import FieldmapReportlet
from sdcflows.utils.misc import front as _pop

# First, one for checking the co-registration between fieldmap and EPI
sdc_coreg_report = pe.Node(
Expand All @@ -1215,7 +1214,6 @@ def init_func_preproc_wf(bold_file, has_fieldmap=False):

# Second, showing the fieldmap reconstructed from coefficients in the EPI space
fmap_report = pe.Node(FieldmapReportlet(), "fmap_report")
fmap_report.interface._always_run = True

ds_fmap_report = pe.Node(
DerivativesDataSink(
Expand All @@ -1242,7 +1240,7 @@ def init_func_preproc_wf(bold_file, has_fieldmap=False):
]),
(inputnode, ds_report_sdc_coreg, [("bold_file", "source_file")]),
(sdc_coreg_report, ds_report_sdc_coreg, [("out_report", "in_file")]),
(unwarp_wf, fmap_report, [(("outputnode.fieldmap", _pop), "fieldmap")]),
(unwarp_wf, fmap_report, [(("outputnode.fieldmap", pop_file), "fieldmap")]),
(coeff2epi_wf, fmap_report, [
("coregister.inverse_warped_image", "reference"),
]),
Expand Down

0 comments on commit 1a9aa1a

Please sign in to comment.