MCPcopy
hub / github.com/numpy/numpy / _shrink_mask

Function _shrink_mask

numpy/ma/core.py:1597–1604  ·  view source on GitHub ↗

Shrink a mask to nomask if possible

(m)

Source from the content-addressed store, hash-verified

1595
1596
1597def _shrink_mask(m):
1598 """
1599 Shrink a mask to nomask if possible
1600 """
1601 if m.dtype.names is None and not m.any():
1602 return nomask
1603 else:
1604 return m
1605
1606
1607def make_mask(m, copy=False, shrink=True, dtype=MaskType):

Callers 6

make_maskFunction · 0.85
mask_orFunction · 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…