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

numpy-svn@scip... numpy-svn@scip...
Tue Nov 11 16:20:49 CST 2008


Author: pierregm
Date: 2008-11-11 16:20:46 -0600 (Tue, 11 Nov 2008)
New Revision: 6011

Modified:
   trunk/numpy/ma/mrecords.py
Log:
MaskedRecords : reintroduced _fieldmask as a property (for backcompatibility).

Modified: trunk/numpy/ma/mrecords.py
===================================================================
--- trunk/numpy/ma/mrecords.py	2008-11-11 21:57:01 UTC (rev 6010)
+++ trunk/numpy/ma/mrecords.py	2008-11-11 22:20:46 UTC (rev 6011)
@@ -174,6 +174,11 @@
         return ndarray.view(self,recarray)
     _data = property(fget=_getdata)
 
+    def _getfieldmask(self):
+        "Alias to mask"
+        return self._mask
+    _fieldmask = property(fget=_getfieldmask)
+
     def __len__(self):
         "Returns the length"
         # We have more than one record



More information about the Numpy-svn mailing list