dwavesystems / dwave-cloud-client

A minimal implementation of the REST interface used to communicate with D-Wave Solver API (SAPI) servers.
https://docs.ocean.dwavesys.com/projects/cloud-client/en/stable/
Apache License 2.0
59 stars 40 forks source link

numpy bool objects are not JSON serializable #16

Open arcondello opened 6 years ago

arcondello commented 6 years ago

https://bugs.python.org/issue18303

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

frechette-alex commented 6 years ago

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?

randomir commented 6 years ago

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