You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created this big object where it contains a lot of numpy arrays and then used jsonpickle to encode it. And then I got the following warning: C:\Users\Anh Tran\PycharmProjects\WAAMSoft_Python\venv\lib\site-packages\jsonpickle\ext\numpy.py:292: UserWarning: ndarray is defined by reference to an object we do not know how to serialize. A deep copy is serialized instead, breaking memory aliasing. warnings.warn(msg)
Is there anyway for me to see what is causing this warning? Thank you.
The text was updated successfully, but these errors were encountered:
Sorry for the (very) late response, but that warning is because when jsonpickle checks the numpy object base attribute (the base array), it ends up not being an instance of numpy.ndarray, so jsonpickle warns that. I don't know if it's showing up for you because jsonpickle might be recursing too deep, I'd need a reproducible example from you to be sure.
Hi all,
I created this big object where it contains a lot of numpy arrays and then used jsonpickle to encode it. And then I got the following warning:
C:\Users\Anh Tran\PycharmProjects\WAAMSoft_Python\venv\lib\site-packages\jsonpickle\ext\numpy.py:292: UserWarning: ndarray is defined by reference to an object we do not know how to serialize. A deep copy is serialized instead, breaking memory aliasing. warnings.warn(msg)
Is there anyway for me to see what is causing this warning? Thank you.
The text was updated successfully, but these errors were encountered: