mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-04 13:00:57 +08:00
Use for mgrid for Py26 compatibility
This commit is contained in:
1 parent
877a7ba109
commit
d367ff479b
1 file changed
+2
-2
@@ -66,8 +66,8 @@ def test_warp_nd():
|
||||
refx_c = dim * (1,)
|
||||
refx[refx_c] = 1
|
||||
|
||||
coord_grid = dim * (np.arange(5),)
|
||||
coords = np.array(np.meshgrid(*coord_grid)) + 1
|
||||
coord_grid = dim * (slice(0, 5, 1),)
|
||||
coords = np.array(np.mgrid[coord_grid]) + 1
|
||||
|
||||
outx = warp(x, coords, order=0, cval=0)
|
||||
|
||||
|
||||
Reference in new issue
Block a user