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

Method _check_range

numpy/core/tests/test_multiarray.py:4959–4961  ·  view source on GitHub ↗
(self, x, cmin, cmax)

Source from the content-addressed store, hash-verified

4957
4958class TestClip:
4959 def _check_range(self, x, cmin, cmax):
4960 assert_(np.all(x >= cmin))
4961 assert_(np.all(x <= cmax))
4962
4963 def _clip_type(self, type_group, array_max,
4964 clip_min, clip_max, inplace=False,

Callers 2

_clip_typeMethod · 0.95
test_record_arrayMethod · 0.95

Calls 2

assert_Function · 0.90
allMethod · 0.45

Tested by

no test coverage detected