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

Method test_ravel

numpy/matrixlib/tests/test_masked_matrix.py:164–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

162 assert_equal(b, [[2, 3, 4]])
163
164 def test_ravel(self):
165 a = masked_array(np.matrix([1, 2, 3, 4, 5]), mask=[[0, 1, 0, 0, 0]])
166 aravel = a.ravel()
167 assert_equal(aravel.shape, (1, 5))
168 assert_equal(aravel._mask.shape, a.shape)
169
170 def test_view(self):
171 # Test view w/ flexible dtype

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
ravelMethod · 0.45

Tested by

no test coverage detected