diff --git a/klongpy/ws/sys_fn_ws.py b/klongpy/ws/sys_fn_ws.py index dac6708..b054fd8 100644 --- a/klongpy/ws/sys_fn_ws.py +++ b/klongpy/ws/sys_fn_ws.py @@ -32,6 +32,10 @@ class KGRemoteCloseConnectionException(KlongException): class NumpyEncoder(json.JSONEncoder): + """ + We need to translate NumPy objects into lists as needed: + https://stackoverflow.com/questions/26646362/numpy-array-is-not-json-serializable + """ def default(self, obj): if isinstance(obj, np.ndarray): return obj.tolist()