### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Masked array operations »

# numpy.ma.mask_or

`numpy.ma.``mask_or`(m1, m2, copy=False, shrink=True)

  Return the combination of two masks m1 and m2.

  The masks are combined with the logical_or operator, treating nomask as False. The result may equal m1 or m2 if the other is nomask.

  Parameters: | m1 : array_like First mask. m2 : array_like Second mask copy : {False, True}, optional Whether to return a copy. shrink : {True, False}, optional Whether to shrink m to nomask if all its values are False.
  Raises: | ValueError : If m1 and m2 have different flexible dtypes.

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Masked array operations »