Skip to content

Commit 519646d

Browse files
authored
Merge pull request #443 from effigies/rf/anat-template-dimensions
RF: Use genericised "anat" input/output for TemplateDimensions
2 parents 366df6e + aa7a43e commit 519646d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies = [
2525
"matplotlib >= 2.2.0",
2626
"nibabel >= 4.0.1",
2727
"nipype >= 1.7.0",
28-
"niworkflows >= 1.10.1",
28+
"niworkflows @ git+https://github.com/nipreps/niworkflows.git@master",
2929
"numpy",
3030
"packaging",
3131
"pybids >= 0.11.1",

smriprep/workflows/anatomical.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,16 +1445,16 @@ def init_anat_template_wf(
14451445

14461446
# fmt:off
14471447
workflow.connect([
1448-
(inputnode, anat_ref_dimensions, [('anat_files', 't1w_list')]),
1449-
(anat_ref_dimensions, denoise, [('t1w_valid_list', 'input_image')]),
1448+
(inputnode, anat_ref_dimensions, [('anat_files', 'anat_list')]),
1449+
(anat_ref_dimensions, denoise, [('anat_valid_list', 'input_image')]),
14501450
(anat_ref_dimensions, anat_conform, [
14511451
('target_zooms', 'target_zooms'),
14521452
('target_shape', 'target_shape'),
14531453
]),
14541454
(denoise, anat_conform, [('output_image', 'in_file')]),
14551455
(anat_ref_dimensions, outputnode, [
14561456
('out_report', 'out_report'),
1457-
('t1w_valid_list', 'anat_valid_list'),
1457+
('anat_valid_list', 'anat_valid_list'),
14581458
]),
14591459
])
14601460
# fmt:on
@@ -1524,7 +1524,7 @@ def _set_threads(in_list, maximum):
15241524

15251525
# fmt:off
15261526
workflow.connect([
1527-
(anat_ref_dimensions, anat_conform_xfm, [('t1w_valid_list', 'source_file')]),
1527+
(anat_ref_dimensions, anat_conform_xfm, [('anat_valid_list', 'source_file')]),
15281528
(anat_conform, anat_conform_xfm, [('out_file', 'target_file')]),
15291529
(anat_conform, n4_correct, [('out_file', 'input_image')]),
15301530
(anat_conform, anat_merge, [

0 commit comments

Comments
 (0)