assertion covers several things.
- negative number of points?? how could that even happen
- data isn’t continous, which can be fixed with a
.copy()
of the points - points aren’t floats, which is fixed by
.astype(np.float64)
or float32.
see which it is. I’d avoid fixing things that don’t need a fix because the fixes do cost something.