diff options
author | Eric Firing <efiring@hawaii.edu> | 2013-06-15 15:31:52 -1000 |
---|---|---|
committer | Eric Firing <efiring@hawaii.edu> | 2013-06-16 09:31:53 -1000 |
commit | 216d8cbc46f808eeff1942b3a607afca427125f2 (patch) | |
tree | 343b7b595c4fa467d7fd3f09dd606a74f494c5f6 /numpy/ma/core.py | |
parent | 2a5c2c8227b600654f31ed346c73cce77bef554d (diff) | |
download | numpy-216d8cbc46f808eeff1942b3a607afca427125f2.tar.gz |
BUG: add __len__ method to ma.mvoid; closes #576
Diffstat (limited to 'numpy/ma/core.py')
-rw-r--r-- | numpy/ma/core.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 4c574b3be..fc086e5b7 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -5643,6 +5643,9 @@ class mvoid(MaskedArray): else: yield d + def __len__(self): + return self._data.__len__() + def filled(self, fill_value=None): """ Return a copy with masked fields filled with a given value. |