From 5d77471f5156c162a9839db612e73897bce8c8ee Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Thu, 19 May 2016 17:17:19 +0200 Subject: [PATCH] Fix DeprecationWarning due to ellipsis in adaptive sampling. --- replot/adaptive_sampling.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/replot/adaptive_sampling.py b/replot/adaptive_sampling.py index b785ae4..30ca3f8 100644 --- a/replot/adaptive_sampling.py +++ b/replot/adaptive_sampling.py @@ -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))