MCPcopy Create free account
hub / github.com/dask/dask / test_field_access

Function test_field_access

dask/array/tests/test_array_core.py:1288–1293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1286
1287
1288def test_field_access():
1289 x = np.array([(1, 1.0), (2, 2.0)], dtype=[("a", "i4"), ("b", "f4")])
1290 y = from_array(x, chunks=(1,))
1291 assert_eq(y["a"], x["a"])
1292 assert_eq(y[["b", "a"]], x[["b", "a"]])
1293 assert same_keys(y[["b", "a"]], y[["b", "a"]])
1294
1295
1296def test_field_access_with_shape():

Callers

nothing calls this directly

Calls 3

from_arrayFunction · 0.90
assert_eqFunction · 0.90
same_keysFunction · 0.90

Tested by

no test coverage detected