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

Method test_integer_split_2D_cols

numpy/lib/tests/test_shape_base.py:430–436  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

428 assert_(a.dtype.type is res[-1].dtype.type)
429
430 def test_integer_split_2D_cols(self):
431 a = np.array([np.arange(10), np.arange(10)])
432 res = array_split(a, 3, axis=-1)
433 desired = [np.array([np.arange(4), np.arange(4)]),
434 np.array([np.arange(4, 7), np.arange(4, 7)]),
435 np.array([np.arange(7, 10), np.arange(7, 10)])]
436 compare_results(res, desired)
437
438 def test_integer_split_2D_default(self):
439 """ This will fail if we change default axis

Callers

nothing calls this directly

Calls 2

array_splitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected