[Scipy-svn] r2674 - trunk/Lib/sandbox/maskedarray

scipy-svn@scip... scipy-svn@scip...
Fri Feb 2 21:15:51 CST 2007


Author: pierregm
Date: 2007-02-02 21:15:48 -0600 (Fri, 02 Feb 2007)
New Revision: 2674

Modified:
   trunk/Lib/sandbox/maskedarray/core.py
Log:


Modified: trunk/Lib/sandbox/maskedarray/core.py
===================================================================
--- trunk/Lib/sandbox/maskedarray/core.py	2007-02-02 14:21:45 UTC (rev 2673)
+++ trunk/Lib/sandbox/maskedarray/core.py	2007-02-03 03:15:48 UTC (rev 2674)
@@ -856,7 +856,7 @@
         if isinstance(data, MaskedArray) or\
            (hasattr(data,"_mask") and hasattr(data,"_data")) :
             if data is masked:
-                return masked
+                return masked.view(cls)
             if keep_mask:
                 if mask is nomask:
                     if copy:



More information about the Scipy-svn mailing list