Skip to content

Commit

Permalink
STY: Minor style fixups.
Browse files Browse the repository at this point in the history
Fix some long lines and indentation in numpy/ma/core.py and
numpy/ma/extras.py
  • Loading branch information
charris committed Nov 7, 2015
1 parent 7f53768 commit 1e17e2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions numpy/ma/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
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:
Expand Down Expand Up @@ -5884,7 +5886,7 @@ def filled(self, fill_value=None):
--------
MaskedArray.filled
"""
"""
return asarray(self).filled(fill_value)[()]

def tolist(self):
Expand Down
3 changes: 2 additions & 1 deletion numpy/ma/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1e17e2d

Please sign in to comment.