Skip to content

Commit fbaf10f

Browse files
committed
FIX: Workflow desc aggregation
1 parent 1639272 commit fbaf10f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabies/workflows/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def init_single_subject_wf(subject_id, session_id=None):
408408

409409
# Append the functional section to the existing anatomical exerpt
410410
# That way we do not need to stream down the number of bold datasets
411-
anat_preproc_wf.__postdesc__ = getattr(anat_preproc_wf, '__postdesc__', '')
411+
anat_preproc_wf.__postdesc__ = getattr(anat_preproc_wf, '__postdesc__') or ''
412412
func_pre_desc = f"""
413413
414414
Functional data preprocessing
@@ -423,7 +423,7 @@ def init_single_subject_wf(subject_id, session_id=None):
423423
if func_preproc_wf is None:
424424
continue
425425

426-
func_preproc_wf.__desc__ = func_pre_desc + getattr(func_preproc_wf, '__desc__', '')
426+
func_preproc_wf.__desc__ = func_pre_desc + (getattr(func_preproc_wf, '__desc__') or '')
427427
# fmt:off
428428
workflow.connect([
429429
(anat_preproc_wf, func_preproc_wf, [

0 commit comments

Comments
 (0)