Skip to content

Commit

Permalink
fix tests via stepped_1d function
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Jul 12, 2019
1 parent f7b8f75 commit a57130b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dipy/core/tests/test_interpolation.py
Expand Up @@ -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)
Expand Down

0 comments on commit a57130b

Please sign in to comment.