Skip to content

Commit c4eed72

Browse files
authored
Merge pull request #2160 from mgxd/fix/sdc-report
FIX: Dismiss "echo" entity from SDC reports
2 parents 171ac24 + bec03ef commit c4eed72

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
@@ -531,13 +531,16 @@ def init_func_preproc_wf(bold_file):
531531
])
532532

533533
# Overwrite ``out_path_base`` of unwarping DataSinks
534+
# And ensure echo is dropped from report
534535
for node in fmap_unwarp_report_wf.list_node_names():
535536
if node.split('.')[-1].startswith('ds_'):
536537
fmap_unwarp_report_wf.get_node(node).interface.out_path_base = 'fmriprep'
538+
fmap_unwarp_report_wf.get_node(node).inputs.dismiss_entities = ("echo",)
537539

538540
for node in bold_sdc_wf.list_node_names():
539541
if node.split('.')[-1].startswith('ds_'):
540542
bold_sdc_wf.get_node(node).interface.out_path_base = 'fmriprep'
543+
bold_sdc_wf.get_node(node).inputs.dismiss_entities = ("echo",)
541544

542545
if 'syn' in fmaps:
543546
sdc_select_std = pe.Node(
@@ -565,9 +568,11 @@ def init_func_preproc_wf(bold_file):
565568
])
566569

567570
# Overwrite ``out_path_base`` of unwarping DataSinks
571+
# And ensure echo is dropped from report
568572
for node in syn_unwarp_report_wf.list_node_names():
569573
if node.split('.')[-1].startswith('ds_'):
570574
syn_unwarp_report_wf.get_node(node).interface.out_path_base = 'fmriprep'
575+
syn_unwarp_report_wf.get_node(node).inputs.dismiss_entities = ("echo",)
571576

572577
# Map final BOLD mask into T1w space (if required)
573578
nonstd_spaces = set(spaces.get_nonstandard())

0 commit comments

Comments
 (0)