From a57130b177ee7cf5897919a5396530bd8360767d Mon Sep 17 00:00:00 2001 From: skoudoro Date: Fri, 12 Jul 2019 09:43:40 -0400 Subject: [PATCH] fix tests via stepped_1d function --- dipy/core/tests/test_interpolation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dipy/core/tests/test_interpolation.py b/dipy/core/tests/test_interpolation.py index ce37dd76547..4b67e70b8c2 100644 --- a/dipy/core/tests/test_interpolation.py +++ b/dipy/core/tests/test_interpolation.py @@ -362,6 +362,11 @@ def test_TriLinearInterpolator(): def test_trilinear_interp_cubic_voxels(): + + def stepped_1d(arr_1d): + # Make a version of `arr_1d` which is not contiguous + return np.vstack((arr_1d, arr_1d)).ravel(order='F')[::2] + A = np.ones((17, 17, 17)) B = np.zeros(3) strides = np.array(A.strides, np.intp)