[Scipy-tickets] [SciPy] #278: AttributeError: gettypecode not found

SciPy scipy-tickets at scipy.net
Fri Oct 6 08:45:27 CDT 2006


#278: AttributeError: gettypecode not found
----------------------+-----------------------------------------------------
 Reporter:  nils      |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  normal    |   Milestone:          
Component:  scipy.io  |     Version:          
 Severity:  normal    |    Keywords:          
----------------------+-----------------------------------------------------
 I cannot write a sparse matrix to a Matrix Market formatted file.
 {{{
     io.mmwrite('a',A)
   File "/usr/lib64/python2.4/site-packages/scipy/io/mmio.py", line 269, in
 mmwrite
     typecode = a.gettypecode()
   File "/usr/lib64/python2.4/site-packages/scipy/sparse/sparse.py", line
 237, in __getattr__
     raise AttributeError, attr + " not found"
 AttributeError: gettypecode not found
 >>> A
 <2x2 sparse matrix of type '<type 'numpy.float64'>'
         with 4 stored elements (space for 8)
         in Compressed Sparse Column format>
 }}}
 {{{
 I am using
 >>> numpy.__version__
 '1.0.dev3267'
 >>> scipy.__version__
 '0.5.2.dev2241'
 }}}

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


More information about the Scipy-tickets mailing list