[NumPy-Tickets] [NumPy] #1746: array(), asarray() fail

NumPy Trac numpy-tickets@scipy....
Fri Feb 18 18:03:44 CST 2011


#1746: array(), asarray() fail
----------------------------+-----------------------------------------------
 Reporter:  pa.basso        |       Owner:  somebody  
     Type:  defect          |      Status:  needs_info
 Priority:  normal          |   Milestone:  2.0.0     
Component:  Other           |     Version:  1.5.1     
 Keywords:  array, asarray  |  
----------------------------+-----------------------------------------------
Changes (by pv):

  * status:  new => needs_info


Comment:

 Works for me:
 {{{
 >>> import numpy as np
 >>> mtx=[[ 0., 0., 0.], [ 0., -1., -2.], [ 1., 1., 1.]]
 >>> x=np.array(mtx)
 >>> x
 array([[ 0.,  0.,  0.],
        [ 0., -1., -2.],
        [ 1.,  1.,  1.]])
 >>> np.__version__
 '1.3.0'
 }}}
 Works also on 1.5.1.

 Maybe your `mtx` that contains something else?

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


More information about the NumPy-Tickets mailing list