Python pickling error: TypeError: object pickle not returning list. Issue with numpy?

∥☆過路亽.° 提交于 2019-12-06 04:59:37

Had a very similar issue: I rewrote a script so that the np.nan values were masked as well (I wish numpy, scipy and matplotlib could handle arrays consistently) but this caused pickle.load() to baulk. I got rid of the masked arrays and everything worked again. The solution seems to be to add and remove masks to please pickle. Not much of a solution, I know, but it seems to work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!