Skip to content

Commit e5a0ff5

Browse files
committed
fix: Adapt to transposed ndindex in nitransforms
1 parent cfe0d4d commit e5a0ff5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dependencies = [
2929
"migas >= 0.4.0",
3030
"nireports >= 25.0.1",
3131
"niworkflows >= 1.11.0",
32-
"nitransforms >= 24.1.0",
32+
"nitransforms >= 25.0.1",
3333
"numpy >= 1.23",
3434
"pybids >= 0.16.4",
3535
"scikit-image >= 0.18",

sdcflows/transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def apply(
502502
# Reference image's voxel coordinates (in voxel units)
503503
voxcoords = (
504504
nt.linear.Affine(reference=moving)
505-
.reference.ndindex.reshape((ndim, *data.shape[:ndim]))
505+
.reference.ndindex.T.reshape((ndim, *data.shape[:ndim]))
506506
.astype('float32')
507507
)
508508

0 commit comments

Comments
 (0)