octue / octue-sdk-python

The python SDK for @Octue services and digital twins.
https://octue.com
Other
10 stars 4 forks source link

Convert non-JSON-serialisable numpy floats to JSON-serialisable floats #606

Open cortadocodes opened 1 year ago

cortadocodes commented 1 year ago

Bug report

Current behaviour

Numpy float types fail JSON serialisation and kill data services.

What is the expected behavior?

Numpy float types can be serialised to JSON for e.g. sending as output values from a data service.