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

Method test_neg_axis

numpy/ma/tests/test_extras.py:998–1001  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

996 assert_equal(median(x, 0), [[12, 10], [8, 9], [16, 17]])
997
998 def test_neg_axis(self):
999 x = masked_array(np.arange(30).reshape(10, 3))
1000 x[:3] = x[-3:] = masked
1001 assert_equal(median(x, axis=-1), median(x, axis=1))
1002
1003 def test_out_1d(self):
1004 # integer float even odd

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
medianFunction · 0.90
reshapeMethod · 0.80

Tested by

no test coverage detected