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

use add_points in get_results

parent 84267d82
No related branches found
No related tags found
No related merge requests found
......@@ -174,8 +174,7 @@ class Learner1D(object):
done = [(x, y.result()) for x, y in self.unfinished.items() if y.done()]
for x, y in done:
self.unfinished.pop(x)
if done:
self.add_data(*np.array(done).T)
self.add_point(x, y)
def add_futures(self, xs, ys):
"""Add concurrent.futures to the self.unfinished dict."""
......
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