Browse code

2D: don't add the point value pair twice

Bas Nijholt authored on 21/11/2017 13:37:48
Showing 1 changed files
... ...
@@ -229,8 +229,6 @@ class Learner2D(BaseLearner):
229 229
             self._values = np.resize(self._values, (nmax, self.vdim))
230 230
             self._values[n] = value
231 231
 
232
-        self._values[n] = value
233
-
234 232
         self._stack.pop(point, None)
235 233
 
236 234
         # Reset the in LinearNDInterpolator objects