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

Method _create_arrays

numpy/lib/tests/test_recfunctions.py:448–456  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

446 # Test merge_arrays
447
448 def _create_arrays(self):
449 x = np.array([1, 2, ])
450 y = np.array([10, 20, 30])
451 z = np.array(
452 [('A', 1.), ('B', 2.)], dtype=[('A', '|S3'), ('B', float)])
453 w = np.array(
454 [(1, (2, 3.0, ())), (4, (5, 6.0, ()))],
455 dtype=[('a', int), ('b', [('ba', float), ('bb', int), ('bc', [])])])
456 return w, x, y, z
457
458 def test_solo(self):
459 # Test merge_arrays on a single array.

Callers 8

test_soloMethod · 0.95
test_solo_w_flattenMethod · 0.95
test_standardMethod · 0.95
test_flattenMethod · 0.95
test_wmasked_arraysMethod · 0.95
test_w_shorter_flexMethod · 0.95
test_singlerecordMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected