Fix DeprecationWarning due to ellipsis in adaptive sampling.

This commit is contained in:
Lucas Verney 2016-05-19 17:17:19 +02:00
parent 71cc5d3874
commit 5d77471f51
1 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,8 @@ def _sample_function(func, points, values=None, mask=None, tol=0.05,
# recursion limit
return points, values
x_a = points[..., :-1][..., mask]
x_b = points[..., 1:][..., mask]
x_a = points[:-1][mask]
x_b = points[1:][mask]
x_c = .5*(x_a + x_b)
y_c = np.atleast_2d(func(x_c))