Skip to content
Snippets Groups Projects
Commit c9555ef9 authored by Bas Nijholt's avatar Bas Nijholt
Browse files

don't set the NDInterpolator as a attribute

parent 8114da3d
No related branches found
No related tags found
1 merge request!7implement 2D learner
......@@ -644,7 +644,6 @@ class Learner2D(BaseLearner):
self._points = np.zeros([100, self.ndim])
self._values = np.zeros([100], dtype)
self.n = 0
self.ip = None
self.nstack = 10
self._stack = []
self._interp = {}
......@@ -724,8 +723,7 @@ class Learner2D(BaseLearner):
v[n] = value
# Interpolate
self.ip = interpolate.LinearNDInterpolator(p, v)
ip = self.ip
ip = interpolate.LinearNDInterpolator(p, v)
tri = ip.tri
# Gradients
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment