(self)
| 512 | assert_equal(test, control) |
| 513 | |
| 514 | def test_flatten_wflexible(self): |
| 515 | # Test flatten standard & nested |
| 516 | w, x, _, _ = self._create_arrays() |
| 517 | test = merge_arrays((x, w), flatten=True) |
| 518 | control = np.array([(1, 1, 2, 3.0), (2, 4, 5, 6.0)], |
| 519 | dtype=[('f0', int), |
| 520 | ('a', int), ('ba', float), ('bb', int)]) |
| 521 | assert_equal(test, control) |
| 522 | |
| 523 | test = merge_arrays((x, w), flatten=False) |
| 524 | f1_descr = [('a', int), ('b', [('ba', float), ('bb', int), ('bc', [])])] |
| 525 | controldtype = [('f0', int), ('f1', f1_descr)] |
| 526 | control = np.array([(1., (1, (2, 3.0, ()))), (2, (4, (5, 6.0, ())))], |
| 527 | dtype=controldtype) |
| 528 | assert_equal(test, control) |
| 529 | |
| 530 | def test_wmasked_arrays(self): |
| 531 | # Test merge_arrays masked arrays |
nothing calls this directly
no test coverage detected