[Scipy-tickets] [SciPy] #590: sparse.lil_matrix fails on save

SciPy scipy-tickets@scipy....
Wed Jan 16 12:29:26 CST 2008

#590: sparse.lil_matrix fails on save
 Reporter:  flatberg      |        Owner:  somebody
     Type:  defect        |       Status:  new     
 Priority:  normal        |    Milestone:  0.7     
Component:  scipy.sparse  |      Version:          
 Severity:  normal        |   Resolution:          
 Keywords:                |  
Comment (by nils):

 save is deprecated.
 >>> from scipy import *
 >>> a = sparse.lil_matrix(eye(3))
 >>> a
 <3x3 sparse matrix of type '<type 'numpy.float64'>'
         with 3 stored elements in LInked List format>
 >>> a.save("/tmp/tull")
 DeprecationWarning: save() is deprecated, consider using mmwrite() or
 savemat() provided by scipy.io instead
 Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/lib/python2.4/site-packages/scipy/sparse/base.py", line 500,
 in save
     fd.write(format % (ir, ic, data))
 TypeError: int argument required
 >>> scipy.__version__

Ticket URL: <http://scipy.org/scipy/scipy/ticket/590#comment:1>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list