[Numpy-tickets] [NumPy] #634: masked array with dtype bool, sum to bool instead of int.

NumPy numpy-tickets@scipy....
Tue Dec 18 11:05:17 CST 2007


#634: masked array with dtype bool, sum to bool instead of int.
--------------------------------------+-------------------------------------
 Reporter:  zongzhi.liu@colorado.edu  |       Owner:  somebody          
     Type:  defect                    |      Status:  new               
 Priority:  normal                    |   Milestone:  1.0.5             
Component:  Other                     |     Version:  none              
 Severity:  normal                    |    Keywords:  ma maskedarray sum
--------------------------------------+-------------------------------------
 masked array with dtype bool, sum to bool instead of int.
 a = array([True, False, True])
 a.sum() # 2

 m = ma.array([True, False, True], mask=[False, False, False])
 m.sum() # True

 numpy version 1.0.3.1
 Linux: Fedora 8
 Intel Pentium M 1.4G laptop (compaq presario X1000)

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


More information about the Numpy-tickets mailing list