Skip to content

Commit 2da9916

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 23bc03b commit 2da9916

File tree

3 files changed

+28
-11
lines changed

3 files changed

+28
-11
lines changed

CPAC/func_preproc/func_preproc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,9 +1926,7 @@ def template_space_bold_masking(
19261926
func_apply_mask.inputs.expr = "a*b"
19271927
func_apply_mask.inputs.outputtype = "NIFTI_GZ"
19281928

1929-
node_head_bold, out_head_bold = strat_pool.get_data(
1930-
"space-template_desc-head_bold"
1931-
)
1929+
node_head_bold, out_head_bold = strat_pool.get_data("space-template_desc-head_bold")
19321930
wf.connect(node_head_bold, out_head_bold, func_apply_mask, "in_file_a")
19331931

19341932
node, out = strat_pool.get_data("space-template_desc-bold_mask")

CPAC/pipeline/cpac_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ def build_workflow(subject_id, sub_dict, cfg, pipeline_name=None):
14841484
pipeline_blocks += [
14851485
template_space_bold_masking,
14861486
]
1487-
1487+
14881488
# Template-space nuisance regression
14891489
nuisance_template = (
14901490
cfg["nuisance_corrections", "2-nuisance_regression", "space"] == "template"

CPAC/registration/registration.py

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4235,7 +4235,8 @@ def warp_timeseries_to_T1template_abcd(wf, cfg, strat_pool, pipe_num, opt=None):
42354235

42364236
node, out = strat_pool.get_data("space-template_res-bold_desc-head_T1w")
42374237
wf.connect(
4238-
node, out,
4238+
node,
4239+
out,
42394240
convert_func_to_standard_warp,
42404241
"reference",
42414242
)
@@ -4303,7 +4304,10 @@ def warp_timeseries_to_T1template_abcd(wf, cfg, strat_pool, pipe_num, opt=None):
43034304

43044305
node, out = strat_pool.get_data("space-template_res-bold_desc-head_T1w")
43054306
wf.connect(
4306-
node, out, convert_registration_warp, "reference",
4307+
node,
4308+
out,
4309+
convert_registration_warp,
4310+
"reference",
43074311
)
43084312

43094313
wf.connect(
@@ -4343,7 +4347,10 @@ def warp_timeseries_to_T1template_abcd(wf, cfg, strat_pool, pipe_num, opt=None):
43434347

43444348
node, out = strat_pool.get_data("space-template_res-bold_desc-head_T1w")
43454349
wf.connect(
4346-
node, out, applywarp_func_to_standard, "ref_file",
4350+
node,
4351+
out,
4352+
applywarp_func_to_standard,
4353+
"ref_file",
43474354
)
43484355

43494356
# applywarp --rel --interp=nn --in=${WD}/prevols/vol${vnum}_mask.nii.gz --warp=${MotionMatrixFolder}/${MotionMatrixPrefix}${vnum}_all_warp.nii.gz --ref=${WD}/${T1wImageFile}.${FinalfMRIResolution} --out=${WD}/postvols/vol${vnum}_mask.nii.gz
@@ -4369,7 +4376,10 @@ def warp_timeseries_to_T1template_abcd(wf, cfg, strat_pool, pipe_num, opt=None):
43694376

43704377
node, out = strat_pool.get_data("space-template_res-bold_desc-head_T1w")
43714378
wf.connect(
4372-
node, out, applywarp_func_mask_to_standard, "ref_file",
4379+
node,
4380+
out,
4381+
applywarp_func_mask_to_standard,
4382+
"ref_file",
43734383
)
43744384

43754385
### Loop ends! ###
@@ -4419,7 +4429,10 @@ def warp_timeseries_to_T1template_abcd(wf, cfg, strat_pool, pipe_num, opt=None):
44194429

44204430
node, out = strat_pool.get_data("space-template_res-bold_desc-head_T1w")
44214431
wf.connect(
4422-
node, out, convert_dc_warp, "reference",
4432+
node,
4433+
out,
4434+
convert_dc_warp,
4435+
"reference",
44234436
)
44244437

44254438
wf.connect(multiply_func_roi_by_zero, "out_file", convert_dc_warp, "warp1")
@@ -4439,7 +4452,10 @@ def warp_timeseries_to_T1template_abcd(wf, cfg, strat_pool, pipe_num, opt=None):
44394452

44404453
node, out = strat_pool.get_data("space-template_res-bold_desc-head_T1w")
44414454
wf.connect(
4442-
node, out, applywarp_scout, "ref_file",
4455+
node,
4456+
out,
4457+
applywarp_scout,
4458+
"ref_file",
44434459
)
44444460

44454461
wf.connect(convert_dc_warp, "out_file", applywarp_scout, "field_file")
@@ -4450,7 +4466,10 @@ def warp_timeseries_to_T1template_abcd(wf, cfg, strat_pool, pipe_num, opt=None):
44504466

44514467
node, out = strat_pool.get_data("space-template_desc-bold_mask")
44524468
wf.connect(
4453-
node, out, merge_func_mask, "in1",
4469+
node,
4470+
out,
4471+
merge_func_mask,
4472+
"in1",
44544473
)
44554474

44564475
wf.connect(find_min_mask, "out_file", merge_func_mask, "in2")

0 commit comments

Comments
 (0)