diff --git a/adaptive/learner.py b/adaptive/learner.py index 41cebf1a5076eb6cb68520abc4b172023416505a..57d539000345836827abe26b9357b36c469b88cd 100644 --- a/adaptive/learner.py +++ b/adaptive/learner.py @@ -703,7 +703,9 @@ class Learner2D(BaseLearner): ip_real = interpolate.LinearNDInterpolator(self.points_real, self.values_real) else: - # It is important not to return exact zeros + # It is important not to return exact zeros because + # otherwise the algo will try to add the same point + # to the stack each time. ip_real = lambda x: np.empty(len(x)) n_interp = list(self._interp.values()) values = ip_real(p[n_interp])