Skip to content

Commit

Permalink
Fix test for modern NumPy.
Browse files Browse the repository at this point in the history
  • Loading branch information
gvtulder committed Nov 12, 2024
1 parent fd3d4b8 commit 53608c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_deform_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def deform_grid_py(X, displacement, order=3, mode='constant', cval=0.0, crop=Non
crop = (slice(None),) * X.ndim

# add the displacement to the coordinates
coordinates = list(coordinates)
for i in range(len(axis)):
yd = scipy.ndimage.map_coordinates(displacement[i], xi, order=3)
# adding the displacement
Expand Down

0 comments on commit 53608c5

Please sign in to comment.