Skip to content

Commit e408c74

Browse files
committed
moving the addition of bold masking below and enabling previously blocked nodeblocks
1 parent 54994b0 commit e408c74

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

CPAC/pipeline/cpac_pipeline.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,13 +1291,6 @@ def build_workflow(subject_id, sub_dict, cfg, pipeline_name=None):
12911291
mask_sbref,
12921292
]
12931293

1294-
# Template space functional mask
1295-
if cfg.functional_preproc["template_space_func_masking"]["run"]:
1296-
if not rpool.check_rpool("space-template_desc-bold_mask"):
1297-
pipeline_blocks += [
1298-
bold_mask_anatomical_resampled,
1299-
]
1300-
13011294
# Distortion/Susceptibility Correction
13021295
distcor_blocks = []
13031296
if "fmap" in sub_dict:
@@ -1320,6 +1313,14 @@ def build_workflow(subject_id, sub_dict, cfg, pipeline_name=None):
13201313

13211314
pipeline_blocks += stack_motion_blocks(func_blocks, cfg, rpool)
13221315

1316+
1317+
# Template space functional mask
1318+
if cfg.functional_preproc["template_space_func_masking"]["run"]:
1319+
if not rpool.check_rpool("space-template_desc-bold_mask"):
1320+
pipeline_blocks += [
1321+
bold_mask_anatomical_resampled,
1322+
]
1323+
13231324
# BOLD to T1 coregistration
13241325
if cfg.registration_workflows["functional_registration"]["coregistration"][
13251326
"run"

0 commit comments

Comments
 (0)