Skip to content

Commit

Permalink
Merge pull request #443 from effigies/rf/anat-template-dimensions
Browse files Browse the repository at this point in the history
RF: Use genericised "anat" input/output for TemplateDimensions
  • Loading branch information
effigies authored Jul 26, 2024
2 parents 366df6e + aa7a43e commit 519646d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies = [
"matplotlib >= 2.2.0",
"nibabel >= 4.0.1",
"nipype >= 1.7.0",
"niworkflows >= 1.10.1",
"niworkflows @ git+https://github.com/nipreps/niworkflows.git@master",
"numpy",
"packaging",
"pybids >= 0.11.1",
Expand Down
8 changes: 4 additions & 4 deletions smriprep/workflows/anatomical.py
Original file line number Diff line number Diff line change
Expand Up @@ -1445,16 +1445,16 @@ def init_anat_template_wf(

# fmt:off
workflow.connect([
(inputnode, anat_ref_dimensions, [('anat_files', 't1w_list')]),
(anat_ref_dimensions, denoise, [('t1w_valid_list', 'input_image')]),
(inputnode, anat_ref_dimensions, [('anat_files', 'anat_list')]),
(anat_ref_dimensions, denoise, [('anat_valid_list', 'input_image')]),
(anat_ref_dimensions, anat_conform, [
('target_zooms', 'target_zooms'),
('target_shape', 'target_shape'),
]),
(denoise, anat_conform, [('output_image', 'in_file')]),
(anat_ref_dimensions, outputnode, [
('out_report', 'out_report'),
('t1w_valid_list', 'anat_valid_list'),
('anat_valid_list', 'anat_valid_list'),
]),
])
# fmt:on
Expand Down Expand Up @@ -1524,7 +1524,7 @@ def _set_threads(in_list, maximum):

# fmt:off
workflow.connect([
(anat_ref_dimensions, anat_conform_xfm, [('t1w_valid_list', 'source_file')]),
(anat_ref_dimensions, anat_conform_xfm, [('anat_valid_list', 'source_file')]),
(anat_conform, anat_conform_xfm, [('out_file', 'target_file')]),
(anat_conform, n4_correct, [('out_file', 'input_image')]),
(anat_conform, anat_merge, [
Expand Down

0 comments on commit 519646d

Please sign in to comment.