MCPcopy Index your code
hub / github.com/dask/dask / test_field_access

Function test_field_access

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

Source from the content-addressed store, hash-verified

1287
1288
1289def test_field_access():
1290 x = np.array([(1, 1.0), (2, 2.0)], dtype=[("a", "i4"), ("b", "f4")])
1291 y = from_array(x, chunks=(1,))
1292 assert_eq(y["a"], x["a"])
1293 assert_eq(y[["b", "a"]], x[["b", "a"]])
1294 assert same_keys(y[["b", "a"]], y[["b", "a"]])
1295
1296
1297def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…