Skip to content

Commit 8cf7ea2

Browse files
committed
set output path of anatomical DataSinks
1 parent b139113 commit 8cf7ea2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fmriprep/workflows/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,11 @@ def init_single_subject_wf(subject_id, task_id, echo_idx, name, reportlets_dir,
476476
(about, ds_report_about, [('out_report', 'in_file')]),
477477
])
478478

479+
# Overwrite ``out_path_base`` of smriprep's DataSinks
480+
for node in workflow.list_node_names():
481+
if node.split('.')[-1].startswith('ds_'):
482+
workflow.get_node(node).interface.out_path_base = 'fmriprep'
483+
479484
if anat_only:
480485
return workflow
481486

0 commit comments

Comments
 (0)