MCPcopy Index your code
hub / github.com/numpy/numpy / test_clip

Method test_clip

numpy/ma/tests/test_old_ma.py:877–882  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

875 axis=0)))
876
877 def test_clip(self):
878 x, _, _, _, mx, _, _ = self._create_data()
879 clipped = mx.clip(2, 8)
880 assert_(eq(clipped.mask, mx.mask))
881 assert_(eq(clipped._data, x.clip(2, 8)))
882 assert_(eq(clipped._data, mx._data.clip(2, 8)))
883
884 def test_ptp(self):
885 _, X, _, m, mx, mX, _ = self._create_data()

Callers

nothing calls this directly

Calls 4

_create_dataMethod · 0.95
assert_Function · 0.90
eqFunction · 0.85
clipMethod · 0.80

Tested by

no test coverage detected