diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2007-01-08 21:56:54 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2007-01-08 21:56:54 +0000 |
commit | 1bd2d49ef378fb869d015cef32c3e44a4c03a8f0 (patch) | |
tree | 43335baf1da0b6e9de0ad806e721a077e3cbfa45 /numpy/core/ma.py | |
parent | 98b6d48b07f4eadfb7d1fc41483debe7e07eecd6 (diff) | |
download | numpy-1bd2d49ef378fb869d015cef32c3e44a4c03a8f0.tar.gz |
Whitespace cleanup.
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r-- | numpy/core/ma.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py index 5bd7ed7d2..fc1e89d7b 100644 --- a/numpy/core/ma.py +++ b/numpy/core/ma.py @@ -2101,7 +2101,7 @@ def diagonal(a, k = 0, axis1=0, axis2=1): return masked_array(d, m) else: return masked_array(d, fromnumeric.diagonal(m, k, axis1, axis2)) - + def trace (a, offset=0, axis1=0, axis2=1, dtype=None, out=None): """trace(a,offset=0, axis1=0, axis2=1) returns the sum along diagonals (defined by the last two dimenions) of the array. @@ -2177,7 +2177,7 @@ array.choose = _m(_choose) del _choose def _clip(self,a_min,a_max,out=None): - return MaskedArray(data = self.data.clip(asarray(a_min).data, + return MaskedArray(data = self.data.clip(asarray(a_min).data, asarray(a_max).data), mask = mask_or(self.mask, mask_or(getmask(a_min),getmask(a_max)))) @@ -2215,7 +2215,7 @@ array.getfield = _m(not_implemented) def _max(a, axis=None, out=None): if out is not None: - raise TypeError("Output arrays Unsupported for masked arrays") + raise TypeError("Output arrays Unsupported for masked arrays") if axis is None: return maximum(a) else: @@ -2254,7 +2254,7 @@ def _squeeze(self): except AttributeError: result = _wrapit(self, 'squeeze') return result -array.squeeze = _m(_squeeze) +array.squeeze = _m(_squeeze) array.strides = property(_m(not_implemented)) array.sum = _m(sum) |