[Numpy-tickets] [NumPy] #744: Loss of dimension bug in numpy.ma.__getitem__ for arrays of shape (n, 1) or (1, n) or (n, 1, 1, ...)

NumPy numpy-tickets@scipy....
Mon Apr 28 21:35:01 CDT 2008


#744: Loss of dimension bug in numpy.ma.__getitem__ for arrays of shape (n, 1) or
(1, n) or (n, 1, 1, ...)
----------------------+-----------------------------------------------------
 Reporter:  dharland  |        Owner:  pierregm
     Type:  defect    |       Status:  new     
 Priority:  normal    |    Milestone:  1.1.0   
Component:  Other     |      Version:  none    
 Severity:  normal    |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by pierregm):

 What version are you using ? It seems to work OK with v4807

 {{{
 >>>x=ma.arange(5).reshape((-1,1))
 >>>x[3]=ma.masked
 >>>print x[0],x[0].shape
 [0] (1,)
 >>>print x[3],x[3].shape
 [--] (1,)
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/744#comment:2>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list