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

SciPy scipy-tickets at scipy.net
Sat Jan 6 00:36:32 CST 2007


#278: AttributeError: gettypecode not found
----------------------+-----------------------------------------------------
 Reporter:  nils      |        Owner:  somebody
     Type:  defect    |       Status:  new     
 Priority:  normal    |    Milestone:          
Component:  scipy.io  |      Version:          
 Severity:  major     |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by timl):

 Replying to [comment:1 nils]:
 > A=A.todense() doesn't work. The imaginary part is missing afterwards.
 >
 > {{{
 > >>> A
 > <2x2 sparse matrix of type '<type 'numpy.float64'>'
 >         with 3 stored elements in LInked List format>
 > >>> print A
 >   (0, 1)        (0.0659104233585+0.553568212194j)
 >   (1, 0)        (0.662199732823+0.852946368188j)
 >   (1, 1)        (0.209971192533+0.154974096269j)
 > >>> A = A.todense()
 > >>> A
 > matrix([[ 0.        ,  0.06591042],
 >         [ 0.66219973,  0.20997119]])
 > }}}


 This is handled by #281.

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


More information about the Scipy-tickets mailing list