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

Function test_elemwise_consistent_names

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

Source from the content-addressed store, hash-verified

2741
2742
2743def test_elemwise_consistent_names():
2744 a = da.from_array(np.arange(5, dtype="f4"), chunks=(2,))
2745 b = da.from_array(np.arange(5, dtype="f4"), chunks=(2,))
2746 assert same_keys(a + b, a + b)
2747 assert same_keys(a + 2, a + 2)
2748 assert same_keys(da.exp(a), da.exp(a))
2749 assert same_keys(da.exp(a, dtype="f8"), da.exp(a, dtype="f8"))
2750 assert same_keys(da.maximum(a, b), da.maximum(a, b))
2751
2752
2753def test_optimize():

Callers

nothing calls this directly

Calls 2

same_keysFunction · 0.90
arangeMethod · 0.45

Tested by

no test coverage detected