Skip to content

Commit d8ab59b

Browse files
authored
FIX: Add datasink fill-in step to resampling level (#3254)
Closes #3253. ## Changes proposed in this pull request - Copy code used to fill in `source_file` and `base_directory` fields for reportlet datasinks in `init_bold_wf` for the `full` level to the `resampling` level as well. - AFAICT, the only reportlets that should be generated by the resampling level are `ds_report_t2scomp` and `ds_report_t2star_hist`, so I could directly add these fields to those nodes, but this approach seems more robust.
1 parent e9b0840 commit d8ab59b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fmriprep/workflows/bold/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,11 @@ def init_bold_wf(
372372
]) # fmt:skip
373373

374374
if config.workflow.level == "resampling":
375+
# Fill-in datasinks of reportlets seen so far
376+
for node in workflow.list_node_names():
377+
if node.split('.')[-1].startswith('ds_report'):
378+
workflow.get_node(node).inputs.base_directory = fmriprep_dir
379+
workflow.get_node(node).inputs.source_file = bold_file
375380
return workflow
376381

377382
# Resample to anatomical space

0 commit comments

Comments
 (0)