numpy.ma.is_mask()
numpy.ma.is_mask
-
numpy.ma.is_mask(m)
[source] -
Return True if m is a valid, standard mask.
This function does not check the contents of the input, only that the type is MaskType. In particular, this function returns False if the mask has a flexible dtype.
Parameters: m : array_like
Array to test.
Returns: result : bool