dwave-cloud-client icon indicating copy to clipboard operation
dwave-cloud-client copied to clipboard

numpy bool objects are not JSON serializable

Open arcondello opened this issue 7 years ago • 2 comments

https://bugs.python.org/issue18303

We should consider putting some logic in to handle this case.

arcondello avatar Feb 13 '18 17:02 arcondello

Other numpy objects are also not serializable, for instance np.int8. This can be problematic if you provide advanced parameters like anneal schedule or x_initial_states that were built with numpy types. Consider expanding this issue to all types?

frechette-alex avatar Feb 19 '18 14:02 frechette-alex

So, @arcondello, you were referring to numpy bools passed as values for params to solver (keyword arguments to Solver.sample_*)?

randomir avatar Apr 11 '18 23:04 randomir