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

scipy-svn at scipy.org scipy-svn at scipy.org
Wed Dec 12 22:39:25 EST 2007


Author: pierregm
Date: 2007-12-12 21:39:17 -0600 (Wed, 12 Dec 2007)
New Revision: 3639

Modified:
   trunk/scipy/sandbox/maskedarray/core.py
Log:
core: fix_invalid : changed the default to copy=True

Modified: trunk/scipy/sandbox/maskedarray/core.py
===================================================================
--- trunk/scipy/sandbox/maskedarray/core.py	2007-12-12 04:47:56 UTC (rev 3638)
+++ trunk/scipy/sandbox/maskedarray/core.py	2007-12-13 03:39:17 UTC (rev 3639)
@@ -269,10 +269,11 @@
     return data
 getdata = get_data
 
-def fix_invalid(a, copy=False, fill_value=None):
+def fix_invalid(a, copy=True, fill_value=None):
     """Returns (a copy of) a where invalid data (nan/inf) are masked and replaced
 by fill_value.
-
+Note that a copy is performed by default (just in case...).
+    
 *Parameters*:
     a : {ndarray}
         A (subclass of) ndarray.




More information about the Scipy-svn mailing list