Skip to content

Commit b1982f9

Browse files
committed
TEST: Expand graphs to ensure IdentityInterface connections are valid
1 parent e46b0e6 commit b1982f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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)