MCPcopy Create free account
hub / github.com/numpy/numpy / _shrink_mask

Function _shrink_mask

numpy/ma/core.py:1545–1552  ·  view source on GitHub ↗

Shrink a mask to nomask if possible

(m)

Source from the content-addressed store, hash-verified

1543
1544
1545def _shrink_mask(m):
1546 """
1547 Shrink a mask to nomask if possible
1548 """
1549 if m.dtype.names is None and not m.any():
1550 return nomask
1551 else:
1552 return m
1553
1554
1555def make_mask(m, copy=False, shrink=True, dtype=MaskType):

Callers 5

make_maskFunction · 0.85
masked_whereFunction · 0.85
shrink_maskMethod · 0.85
concatenateFunction · 0.85
whereFunction · 0.85

Calls 1

anyMethod · 0.45

Tested by

no test coverage detected