(dt, dtype=None)
| 319 | return np.dtype([('x{}'.format(i), dt) for i, dt in enumerate(dts)]) |
| 320 | |
| 321 | def inspect(dt, dtype=None): |
| 322 | arr = np.zeros((), dt) |
| 323 | ret = structured_to_unstructured(arr, dtype=dtype) |
| 324 | backarr = unstructured_to_structured(ret, dt) |
| 325 | return ret.shape, ret.dtype, backarr.dtype |
| 326 | |
| 327 | dt = structured(subarray(structured(np.int32, np.int32), 3)) |
| 328 | assert_equal(inspect(dt), ((6,), np.int32, dt)) |
nothing calls this directly
no test coverage detected