Skip to content

Commit e460f6d

Browse files
committed
Merge remote-tracking branch 'upstream/maint/0.13.x'
2 parents a3df930 + 6d365bc commit e460f6d

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

CHANGES.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
0.13.1 (November 21, 2023)
2+
==========================
3+
Bug fix release in the 0.13.x series.
4+
5+
This release fixes a bug with a workflow connection that was not properly
6+
named, and which would cause an error when T2-weighted images were provided.
7+
8+
* FIX: T1w_preproc -> t1w_preproc (#399)
9+
10+
111
0.13.0 (November 20, 2023)
212
==========================
313
New feature release in the 0.13.x series.

smriprep/workflows/anatomical.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,6 @@ def init_anat_fit_wf(
11511151
)
11521152
ds_t2w_preproc.inputs.SkullStripped = False
11531153

1154-
# fmt:off
11551154
workflow.connect([
11561155
(inputnode, t2w_template_wf, [('t2w', 'inputnode.anat_files')]),
11571156
(t2w_template_wf, bbreg, [('outputnode.anat_ref', 'source_file')]),
@@ -1163,13 +1162,12 @@ def init_anat_fit_wf(
11631162
(surface_recon_wf, coreg_xfms, [('outputnode.fsnative2t1w_xfm', 'in2')]),
11641163
(coreg_xfms, t2wtot1w_xfm, [('out', 'in_xfms')]),
11651164
(t2w_template_wf, t2w_resample, [('outputnode.anat_ref', 'input_image')]),
1166-
(t1w_buffer, t2w_resample, [('T1w_preproc', 'reference_image')]),
1165+
(t1w_buffer, t2w_resample, [('t1w_preproc', 'reference_image')]),
11671166
(t2wtot1w_xfm, t2w_resample, [('out_xfm', 'transforms')]),
11681167
(inputnode, ds_t2w_preproc, [('t2w', 'source_file')]),
11691168
(t2w_resample, ds_t2w_preproc, [('output_image', 'in_file')]),
11701169
(ds_t2w_preproc, outputnode, [('out_file', 't2w_preproc')]),
1171-
])
1172-
# fmt:on
1170+
]) # fmt:skip
11731171
elif not t2w:
11741172
LOGGER.info("ANAT No T2w images provided - skipping Stage 7")
11751173
else:

smriprep/workflows/tests/test_anatomical.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from pathlib import Path
22

3+
from nipype.pipeline.engine.utils import generate_expanded_graph
34
import nibabel as nb
45
import numpy as np
56
import pytest
@@ -202,7 +203,7 @@ def test_anat_fit_precomputes(
202203
Path(path).touch()
203204

204205
# Create workflow
205-
init_anat_fit_wf(
206+
wf = init_anat_fit_wf(
206207
bids_root=str(bids_root),
207208
output_dir=str(output_dir),
208209
freesurfer=True,
@@ -220,3 +221,6 @@ def test_anat_fit_precomputes(
220221
precomputed=precomputed,
221222
omp_nthreads=1,
222223
)
224+
225+
flatgraph = wf._create_flat_graph()
226+
generate_expanded_graph(flatgraph)

0 commit comments

Comments
 (0)