Closed fchtngr closed 6 years ago
Passing a <class 'numpy.float32'> to simplejson.dump results in a TypeError: 0.61730546 is not JSON serializable
<class 'numpy.float32'>
simplejson.dump
TypeError: 0.61730546 is not JSON serializable
This fix casts the numpy.float32 to a python float which can be serialized.
thanks!
Passing a
<class 'numpy.float32'>
tosimplejson.dump
results in aTypeError: 0.61730546 is not JSON serializable
This fix casts the numpy.float32 to a python float which can be serialized.