Skip to content

Commit e944f98

Browse files
committed
FIX: Refactor init_segmentation_wf initialization order
1 parent 22cd218 commit e944f98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

petprep/workflows/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,6 @@ def init_single_subject_wf(subject_id: str):
524524
]),
525525
]) # fmt:skip
526526

527-
if config.workflow.anat_only:
528-
return clean_datasinks(workflow)
529-
530527
segmentation_wf = init_segmentation_wf(
531528
seg=config.workflow.seg,
532529
name=f'pet_{config.workflow.seg}_seg_wf',
@@ -545,6 +542,9 @@ def init_single_subject_wf(subject_id: str):
545542
]
546543
)
547544

545+
if config.workflow.anat_only:
546+
return clean_datasinks(workflow)
547+
548548
# Append the PET section to the existing anatomical excerpt
549549
# That way we do not need to filter down the number of PET datasets
550550
pet_pre_desc = f"""

0 commit comments

Comments
 (0)