, 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.


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.


ValueError :

If m1 and m2 have different flexible dtypes.

Previous topic

Next topic

This Page

Quick search