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

Method test_ravel

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

Source from the content-addressed store, hash-verified

153 assert_equal(b, [[2, 3, 4]])
154
155 def test_ravel(self):
156 a = masked_array(np.matrix([1, 2, 3, 4, 5]), mask=[[0, 1, 0, 0, 0]])
157 aravel = a.ravel()
158 assert_equal(aravel.shape, (1, 5))
159 assert_equal(aravel._mask.shape, a.shape)
160
161 def test_view(self):
162 # 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