diff options
| -rw-r--r-- | numpy/ma/core.py | 6 | ||||
| -rw-r--r-- | numpy/ma/extras.py | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 7d9acbd1c..ffc8bb4d2 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -32,7 +32,9 @@ import numpy.core.numerictypes as ntypes from numpy import ndarray, amax, amin, iscomplexobj, bool_, _NoValue from numpy import array as narray from numpy.lib.function_base import angle -from numpy.compat import getargspec, formatargspec, long, basestring, unicode, bytes, sixu +from numpy.compat import ( + getargspec, formatargspec, long, basestring, unicode, bytes, sixu + ) from numpy import expand_dims as n_expand_dims if sys.version_info[0] >= 3: @@ -5884,7 +5886,7 @@ class mvoid(MaskedArray): -------- MaskedArray.filled - """ + """ return asarray(self).filled(fill_value)[()] def tolist(self): diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py index ae4e0cee5..c4473b498 100644 --- a/numpy/ma/extras.py +++ b/numpy/ma/extras.py @@ -1073,7 +1073,8 @@ def dot(a, b, strict=False): fill_value = 999999) """ - #!!!: Works only with 2D arrays. There should be a way to get it to run with higher dimension + # !!!: Works only with 2D arrays. There should be a way to get it to run + # with higher dimension if strict and (a.ndim == 2) and (b.ndim == 2): a = mask_rows(a) b = mask_cols(b) |
