numpy.ma.mask_or
- 
numpy.ma.mask_or(m1, m2, copy=False, shrink=True)[source]
- 
Combine two masks with the logical_oroperator.The result may be a view on m1orm2if the other isnomask(i.e. False).Parameters: m1, m2 : array_like Input masks. copy : bool, optional If copy is False and one of the inputs is nomask, return a view of the other input mask. Defaults to False.shrink : bool, optional Whether to shrink the output to nomaskif all its values are False. Defaults to True.Returns: mask : output mask The result masks values that are masked in either m1orm2.Raises: ValueError If m1andm2have different flexible dtypes.Examples>>> m1 = np.ma.make_mask([0, 1, 1, 0]) >>> m2 = np.ma.make_mask([1, 0, 0, 0]) >>> np.ma.mask_or(m1, m2) array([ True, True, True, False], dtype=bool) 
    © 2008–2016 NumPy Developers
Licensed under the NumPy License.
    https://docs.scipy.org/doc/numpy-1.11.0/reference/generated/numpy.ma.mask_or.html