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

Method test_neg_axis

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

Source from the content-addressed store, hash-verified

1084 assert_equal(median(x, 0), [[12, 10], [8, 9], [16, 17]])
1085
1086 def test_neg_axis(self):
1087 x = masked_array(np.arange(30).reshape(10, 3))
1088 x[:3] = x[-3:] = masked
1089 assert_equal(median(x, axis=-1), median(x, axis=1))
1090
1091 def test_out_1d(self):
1092 # 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