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.

Previous topic

numpy.ma.mask_cols

Next topic

numpy.ma.mask_rowcols

This Page

Quick search