Saving and loading an NumPy array returns another array

See my IPython laptop here for an example and resulting image distortion.

This old question claims that it was a bug in the old version of NumPy, but I am running NumPy 1.7.1 as shown. Also adding the 'r' flag to np.load () didn't change anything.

This is strange, since it is functioning normally on my working computer. I will copy NumPy arrays to this computer tomorrow to see if save () or load () are to blame.

EDIT: Well, by copying NumPy arrays to another computer that does not have a problem in their own images, it is clear that it is the np.save () problem that causes the problem (and using the main pickle.dump () instead had the same problem). Then I will investigate if this happens for different types and sizes of arrays.

+3
source share

All Articles