Skip to content

Commit 15dd37f

Browse files
committed
FIX: Output NaN columns for CompCor on failure
1 parent e64860d commit 15dd37f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fmriprep/workflows/bold/confounds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,12 @@ def init_bold_confs_wf(mem_gb, metadata, name="bold_confs_wf"):
180180
# a/t-CompCor
181181
tcompcor = pe.Node(
182182
TCompCor(components_file='tcompcor.tsv', header_prefix='t_comp_cor_', pre_filter='cosine',
183-
save_pre_filter=True, percentile_threshold=.05),
183+
save_pre_filter=True, percentile_threshold=.05, failure_mode='NaN'),
184184
name="tcompcor", mem_gb=mem_gb)
185185

186186
acompcor = pe.Node(
187187
ACompCor(components_file='acompcor.tsv', header_prefix='a_comp_cor_', pre_filter='cosine',
188-
save_pre_filter=True),
188+
save_pre_filter=True, failure_mode='NaN'),
189189
name="acompcor", mem_gb=mem_gb)
190190

191191
# Set TR if present

0 commit comments

Comments
 (0)