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

Function _check_mask_axis

numpy/ma/core.py:1816–1821  ·  view source on GitHub ↗

Check whether there are masked values along the given axis

(mask, axis, keepdims=np._NoValue)

Source from the content-addressed store, hash-verified

1814
1815
1816def _check_mask_axis(mask, axis, keepdims=np._NoValue):
1817 "Check whether there are masked values along the given axis"
1818 kwargs = {} if keepdims is np._NoValue else {'keepdims': keepdims}
1819 if mask is not nomask:
1820 return mask.all(axis=axis, **kwargs)
1821 return nomask
1822
1823
1824###############################################################################

Callers 6

allMethod · 0.85
anyMethod · 0.85
sumMethod · 0.85
prodMethod · 0.85
minMethod · 0.85
maxMethod · 0.85

Calls 1

allMethod · 0.45

Tested by

no test coverage detected