[NumPy-Tickets] [NumPy] #1440: Numpy 'where' cannot handle masked arrays with boolean arrays for masks

NumPy Trac numpy-tickets@scipy....
Mon Apr 5 15:44:18 CDT 2010


#1440: Numpy 'where' cannot handle masked arrays with boolean arrays for masks
----------------------------+-----------------------------------------------
  Reporter:  brendanarnold  |       Owner:  somebody
      Type:  defect         |      Status:  closed  
  Priority:  normal         |   Milestone:          
 Component:  Other          |     Version:  1.3.0   
Resolution:  worksforme     |    Keywords:          
----------------------------+-----------------------------------------------

Comment(by brendanarnold):

 Replying to [comment:1 pierregm]:
 > * What version of numpy are you using ? Seems to work pretty fine with
 r8295...

 {{{
 In [7]: np.__version__
 Out[7]: '1.3.0'
 }}}

 Python version 2.6.2

 In fact on further investigation it seems that if you substitute
 {{{np.where(a==1)}}} for {{{np.ma.where(a==1)}}} then it works. Should we
 always use functions under the np.ma namespace for masked arrays?

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


More information about the NumPy-Tickets mailing list