Skip to content

Commit 68b569e

Browse files
committed
fix despike forking
1 parent fab125a commit 68b569e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CPAC/func_preproc/func_preproc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,7 @@ def connect_func_init(workflow, strat_list, c, unique_id=None):
16921692
'despiked': (despike, 'out_file')
16931693
})
16941694

1695+
new_strat.append_name(despike.name)
16951696
new_strat_list.append(new_strat)
16961697

16971698
strat_list = new_strat_list

CPAC/utils/strategy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ def get_forking_labels(strategies):
162162
fork_label = 'freq-filter'
163163

164164
if 'gen_motion_stats_before_stc' in fork:
165-
fork_label = 'motion_stats_before_stc'
165+
fork_label = 'motion_stats_before_stc'
166+
if 'despike' in fork:
167+
fork_label = 'despike'
166168
if 'slice' in fork:
167169
fork_label = 'slice'
168170
if 'anat_preproc_afni' in fork:

0 commit comments

Comments
 (0)