Skip to content

Commit 5cd214c

Browse files
authored
Merge pull request #1372 from FCP-INDI/fix/despike
fix despike forking
2 parents 428af5d + 68b569e commit 5cd214c

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
@@ -1694,6 +1694,7 @@ def connect_func_init(workflow, strat_list, c, unique_id=None):
16941694
'despiked': (despike, 'out_file')
16951695
})
16961696

1697+
new_strat.append_name(despike.name)
16971698
new_strat_list.append(new_strat)
16981699

16991700
strat_list = new_strat_list

CPAC/utils/strategy.py

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

166166
if 'gen_motion_stats_before_stc' in fork:
167-
fork_label = 'motion_stats_before_stc'
167+
fork_label = 'motion_stats_before_stc'
168+
if 'despike' in fork:
169+
fork_label = 'despike'
168170
if 'slice' in fork:
169171
fork_label = 'slice'
170172
if 'anat_preproc_afni' in fork:

0 commit comments

Comments
 (0)