Skip to content

Commit

Permalink
RF: Use genericised "anat" input/output for TemplateDimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jul 18, 2024
1 parent 6501da1 commit 31c0ca3
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@refs/pull/879/merge",
"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 @@ -1451,16 +1451,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 @@ -1530,7 +1530,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 31c0ca3

Please sign in to comment.