[NumPy-Tickets] [NumPy] #1505: load() yields corrupted/incorrect data
NumPy Trac
numpy-tickets@scipy....
Fri Jun 4 02:36:01 CDT 2010
#1505: load() yields corrupted/incorrect data
----------------------+-----------------------------------------------------
Reporter: RRosario | Owner: somebody
Type: defect | Status: new
Priority: high | Milestone: 2.0.0
Component: Other | Version:
Keywords: |
----------------------+-----------------------------------------------------
Using a huge sparse (395000 x 395000) CSC matrix. Tried to save data,
indptr, indices and shape separately.
When I try to read back the indices pickle, I get incorrect data:
>> np.save("indices.pickle", mymatrix.indices)
>>> indices = np.load("indices.pickle.npy")
>>> indices
array([394852, 394649, 394533, ..., 0, 0, 0], dtype=int32)
>>> mymatrix.indices
array([394852, 394649, 394533, ..., 1557, 1223, 285], dtype=int32)
The two arrays are not equal to each other.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1505>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list