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

scipy-svn@scip... scipy-svn@scip...
Thu Mar 1 16:38:48 CST 2007


Author: pierregm
Date: 2007-03-01 16:38:43 -0600 (Thu, 01 Mar 2007)
New Revision: 2806

Modified:
   trunk/Lib/sandbox/maskedarray/core.py
Log:
core : array: added the subok optional parameter...

Modified: trunk/Lib/sandbox/maskedarray/core.py
===================================================================
--- trunk/Lib/sandbox/maskedarray/core.py	2007-03-01 21:40:02 UTC (rev 2805)
+++ trunk/Lib/sandbox/maskedarray/core.py	2007-03-01 22:38:43 UTC (rev 2806)
@@ -1945,7 +1945,7 @@
 masked = masked_singleton
 
 masked_array = MaskedArray
-def array(data, dtype=None, copy=False, order=False, mask=nomask,
+def array(data, dtype=None, copy=False, order=False, mask=nomask, subok=True,
           keep_mask=True, small_mask=True, hard_mask=None, fill_value=None):
     """array(data, dtype=None, copy=True, order=False, mask=nomask,
              keep_mask=True, small_mask=True, fill_value=None)
@@ -1953,7 +1953,7 @@
 And backwards compatibility...
     """
     #TODO: we should try to put 'order' somwehere
-    return MaskedArray(data, mask=mask, dtype=dtype, copy=copy,
+    return MaskedArray(data, mask=mask, dtype=dtype, copy=copy, subok=subok,
                        keep_mask=keep_mask, small_mask=small_mask,
                        hard_mask=hard_mask, fill_value=fill_value)
 



More information about the Scipy-svn mailing list