[NumPy-Tickets] [NumPy] #1505: load() yields corrupted/incorrect data

NumPy Trac numpy-tickets@scipy....
Sun Sep 5 12:08:05 CDT 2010


#1505: load() yields corrupted/incorrect data
--------------------------------------------+-------------------------------
 Reporter:  RRosario                        |       Owner:  somebody  
     Type:  defect                          |      Status:  needs_info
 Priority:  high                            |   Milestone:  2.0.0     
Component:  numpy.core                      |     Version:  1.4.0     
 Keywords:  load save corrupt inconsistent  |  
--------------------------------------------+-------------------------------
Changes (by pv):

  * status:  new => needs_info


Comment:

 Works for me.
 {{{
 >>> import numpy as np
 >>> import scipy.sparse as sparse
 >>> x = sparse.lil_matrix((395000,395000))
 >>> x[:,10] = 1
 >>> x[10,:] = 1
 >>> x = x.tocsc()
 >>> np.save('dump.npy', x.indices)
 >>> y = np.load('dump.npy')
 >>> np.allclose(x.indices, y)
 True
 }}}
 We need a reproducible test case to fix this, so it would help if you can
 provide the way you construct mymatrix.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1505#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list