5454 'rank' , 'ravel' , 'remainder' , 'repeat' , 'reshape' , 'resize' ,
5555 'right_shift' , 'round_' , 'round' ,
5656 'set_fill_value' , 'shape' , 'sin' , 'sinh' , 'size' , 'sometrue' ,
57- 'sort' , 'soften_mask' , 'sqrt' , 'squeeze' , 'std' , 'subtract' , 'sum' ,
57+ 'sort' , 'soften_mask' , 'sqrt' , 'squeeze' , 'std' , 'subtract' , 'sum' ,
5858 'swapaxes' ,
5959 'take' , 'tan' , 'tanh' , 'trace' , 'transpose' , 'true_divide' ,
6060 'var' , 'where' ,
@@ -335,7 +335,7 @@ def common_fill_value(a, b):
335335def filled (a , fill_value = None ):
336336 """
337337 Return `a` as an array where masked data have been replaced by `value`.
338-
338+
339339 If `a` is not a MaskedArray, `a` itself is returned.
340340 If `a` is a MaskedArray and `fill_value` is None, `fill_value` is set to
341341 `a.fill_value`.
@@ -627,7 +627,7 @@ def __call__ (self, a, b, *args, **kwargs):
627627 elif m :
628628 return masked
629629 return result
630- #
630+ #
631631# result = self.f(d1, d2, *args, **kwargs).view(get_masked_subclass(a, b))
632632# if len(result.shape):
633633# if m is not nomask:
@@ -1016,7 +1016,7 @@ def _recursive_mask_or(m1, m2, newmask):
10161016 if current1 .dtype .names :
10171017 _recursive_mask_or (current1 , m2 [name ], newmask [name ])
10181018 else :
1019- umath .logical_or (current1 , m2 [name ], newmask [name ])
1019+ umath .logical_or (current1 , m2 [name ], newmask [name ])
10201020 return
10211021 #
10221022 if (m1 is nomask ) or (m1 is False ):
@@ -1041,7 +1041,7 @@ def flatten_mask(mask):
10411041 """
10421042 Returns a completely flattened version of the mask, where nested fields
10431043 are collapsed.
1044-
1044+
10451045 Parameters
10461046 ----------
10471047 mask : array_like
@@ -1064,7 +1064,7 @@ def flatten_mask(mask):
10641064 >>> mask = np.array([(0, (0, 0)), (0, (0, 1))], dtype=mdtype)
10651065 >>> flatten_mask(mask)
10661066 array([False, False, False, False, False, True], dtype=bool)
1067-
1067+
10681068 """
10691069 #
10701070 def _flatmask (mask ):
@@ -1711,7 +1711,7 @@ def view(self, dtype=None, type=None):
17111711 if dtype is None :
17121712 dtype = output .dtype
17131713 mdtype = make_mask_descr (dtype )
1714-
1714+
17151715 output ._mask = self ._mask .view (mdtype , ndarray )
17161716 output ._mask .shape = output .shape
17171717 # Make sure to reset the _fill_value if needed
@@ -3144,7 +3144,7 @@ def argsort(self, axis=None, fill_value=None, kind='quicksort',
31443144 index_array : ndarray, int
31453145 Array of indices that sort `a` along the specified axis.
31463146 In other words, ``a[index_array]`` yields a sorted `a`.
3147-
3147+
31483148 See Also
31493149 --------
31503150 sort : Describes sorting algorithms used.
@@ -3471,7 +3471,7 @@ def max(self, axis=None, out=None, fill_value=None):
34713471 outmask = out ._mask = make_mask_none (out .shape )
34723472 outmask .flat = newmask
34733473 else :
3474-
3474+
34753475 if out .dtype .kind in 'biu' :
34763476 errmsg = "Masked data information would be lost in one or more" \
34773477 " location."
@@ -4016,12 +4016,12 @@ def sort(a, axis=-1, kind='quicksort', order=None, endwith=True, fill_value=None
40164016def compressed (x ):
40174017 """
40184018 Return a 1-D array of all the non-masked data.
4019-
4019+
40204020 See Also
40214021 --------
40224022 MaskedArray.compressed
40234023 equivalent method
4024-
4024+
40254025 """
40264026 if getmask (x ) is nomask :
40274027 return np .asanyarray (x )
@@ -4389,8 +4389,8 @@ def inner(a, b):
43894389 Returns the inner product of a and b for arrays of floating point types.
43904390
43914391 Like the generic NumPy equivalent the product sum is over the last dimension
4392- of a and b.
4393-
4392+ of a and b.
4393+
43944394 Notes
43954395 -----
43964396 The first argument is not conjugated.
@@ -4460,7 +4460,7 @@ def allclose (a, b, masked_equal=True, rtol=1.e-5, atol=1.e-8, fill_value=None):
44604460 fill_value : boolean, optional
44614461 Whether masked values in a or b are considered equal (True) or not
44624462 (False).
4463-
4463+
44644464 rtol : Relative tolerance
44654465 The relative difference is equal to `rtol` * `b`.
44664466 atol : Absolute tolerance
@@ -4483,7 +4483,7 @@ def allclose (a, b, masked_equal=True, rtol=1.e-5, atol=1.e-8, fill_value=None):
44834483 True.
44844484
44854485 absolute(`a` - `b`) <= (`atol` + `rtol` * absolute(`b`))
4486-
4486+
44874487 Return True if all elements of a and b are equal subject to
44884488 given tolerances.
44894489
@@ -4519,7 +4519,7 @@ def allclose (a, b, masked_equal=True, rtol=1.e-5, atol=1.e-8, fill_value=None):
45194519def asarray (a , dtype = None ):
45204520 """
45214521 Convert the input to a masked array.
4522-
4522+
45234523 Parameters
45244524 ----------
45254525 a : array_like
@@ -4531,7 +4531,7 @@ def asarray(a, dtype=None):
45314531 order : {'C', 'F'}, optional
45324532 Whether to use row-major ('C') or column-major ('FORTRAN') memory
45334533 representation. Defaults to 'C'.
4534-
4534+
45354535 Returns
45364536 -------
45374537 out : ndarray
0 commit comments