MCPcopy
hub / github.com/numpy/numpy / _check_mask_axis

Function _check_mask_axis

numpy/ma/core.py:1873–1878  ·  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

1871
1872
1873def _check_mask_axis(mask, axis, keepdims=np._NoValue):
1874 "Check whether there are masked values along the given axis"
1875 kwargs = {} if keepdims is np._NoValue else {'keepdims': keepdims}
1876 if mask is not nomask:
1877 return mask.all(axis=axis, **kwargs)
1878 return nomask
1879
1880
1881###############################################################################

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…