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

NumPy Trac numpy-tickets@scipy....
Mon Apr 5 16:01:25 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 pierregm):

 So it must have been corrected in more recent versions of Numpy than the
 one you're using.

 To answer your second question, yes, when dealing with masked arrays, it
 is always best to use the numpy.ma version of functions when they are
 available. They are specifically designed to take the mask into account,
 while their standard counterparts may not always work.

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


More information about the NumPy-Tickets mailing list