[Numpy-svn] r6324 - trunk/numpy/ma

numpy-svn@scip... numpy-svn@scip...
Fri Jan 16 18:15:18 CST 2009


Author: pierregm
Date: 2009-01-16 18:15:15 -0600 (Fri, 16 Jan 2009)
New Revision: 6324

Modified:
   trunk/numpy/ma/core.py
Log:
* fixed _arraymethod.__call__ for structured arrays

Modified: trunk/numpy/ma/core.py
===================================================================
--- trunk/numpy/ma/core.py	2009-01-14 07:56:10 UTC (rev 6323)
+++ trunk/numpy/ma/core.py	2009-01-17 00:15:15 UTC (rev 6324)
@@ -1459,7 +1459,7 @@
             elif mask is not nomask:
                 result.__setmask__(getattr(mask, methodname)(*args, **params))
         else:
-            if mask.ndim and mask.all():
+            if mask.ndim and (not mask.dtype.names and mask.all()):
                 return masked
         return result
 #..........................................................



More information about the Numpy-svn mailing list