Skip to content
Snippets Groups Projects
Commit 3735b196 authored by Jorn Hoofwijk's avatar Jorn Hoofwijk
Browse files

fix #96

parent 1e7e87ed
No related branches found
No related tags found
No related merge requests found
Pipeline #12038 passed
......@@ -215,6 +215,10 @@ class Learner1D(BaseLearner):
real = y is not None
if real:
# either it is a float/int, if not, try casting to a np.array
if type(y) not in [float, int]:
y = np.asarray(y, dtype='float64')
# Add point to the real data dict
self.data[x] = y
# remove from set of pending points
......
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