Closed codeplea closed 7 years ago
Good catch. I think this should be a one line fix. I'll put up a PR later this evening.
I'm on mobile at the moment but I believe just changing this line:
cdef np.ndarray[np.float64_t, ndim=1, mode='c'] c_options = np.array(option_list)
to this:
cdef np.ndarray[np.float64_t, ndim=1, mode='c'] c_options = np.array(option_list, dtype=np.float64)
should do the trick.
Passing integers as options doesn't work:
This is the common use-case, so we shouldn't need to type the extra
.
.