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

Method test_concatenate_flexible

numpy/ma/tests/test_core.py:176–183  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

174 assert_array_equal(z.mask, [False, True, False, False])
175
176 def test_concatenate_flexible(self):
177 # Tests the concatenation on flexible arrays.
178 data = masked_array(list(zip(np.random.rand(10),
179 np.arange(10))),
180 dtype=[('a', float), ('b', int)])
181
182 test = concatenate([data[:5], data[5:]])
183 assert_equal_records(test, data)
184
185 def test_creation_ndmin(self):
186 # Check the use of ndmin

Callers

nothing calls this directly

Calls 2

concatenateFunction · 0.90
assert_equal_recordsFunction · 0.90

Tested by

no test coverage detected