[Scipy-svn] r3438 - trunk/scipy/sandbox/maskedarray

scipy-svn at scipy.org scipy-svn at scipy.org
Mon Oct 15 16:43:49 EDT 2007


Author: pierregm
Date: 2007-10-15 15:43:47 -0500 (Mon, 15 Oct 2007)
New Revision: 3438

Modified:
   trunk/scipy/sandbox/maskedarray/core.py
Log:
fixed putmask. Thx to Eric Firing for finding and correcting the bug.

Modified: trunk/scipy/sandbox/maskedarray/core.py
===================================================================
--- trunk/scipy/sandbox/maskedarray/core.py	2007-10-15 20:33:20 UTC (rev 3437)
+++ trunk/scipy/sandbox/maskedarray/core.py	2007-10-15 20:43:47 UTC (rev 3438)
@@ -2588,7 +2588,7 @@
     try:
         return a.putmask(values, mask)
     except AttributeError:
-        return narray(a, copy=False).putmask(values, mask)
+        return numpy.putmask(narray(a, copy=False), mask, values)
 
 def transpose(a,axes=None):
     """Returns a view of the array with dimensions permuted according to axes, 




More information about the Scipy-svn mailing list