[NumPy-Tickets] [NumPy] #1648: Masked round() doesn't work on zero dimensional vectors

NumPy Trac numpy-tickets@scipy....
Mon Oct 25 09:19:19 CDT 2010


#1648: Masked round() doesn't work on zero dimensional vectors
---------------------+------------------------------------------------------
 Reporter:  andylei  |       Owner:  somebody
     Type:  defect   |      Status:  new     
 Priority:  normal   |   Milestone:  2.0.0   
Component:  Other    |     Version:  1.4.1   
 Keywords:           |  
---------------------+------------------------------------------------------
 >>> import numpy as np
 >>> x = np.ma.array(np.array(1.1))
 >>> np.round(x)
 AttributeError

 >>> np.ma.round(x)
 AttributeError

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1648>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list