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

Function same_keys

dask/array/utils.py:191–198  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

189
190
191def same_keys(a, b):
192 def key(k):
193 if isinstance(k, str):
194 return (k, -1, -1, -1)
195 else:
196 return k
197
198 return sorted(a.dask, key=key) == sorted(b.dask, key=key)
199
200
201def _not_empty(x):

Callers 15

test_fromfunctionFunction · 0.90
test_overlap_internalFunction · 0.90
test_overlapFunction · 0.90
test_stackFunction · 0.90
test_concatenateFunction · 0.90
test_field_accessFunction · 0.90
test_map_blocks2Function · 0.90
test_astypeFunction · 0.90
test_from_funcFunction · 0.90

Calls

no outgoing calls

Tested by 15

test_fromfunctionFunction · 0.72
test_overlap_internalFunction · 0.72
test_overlapFunction · 0.72
test_stackFunction · 0.72
test_concatenateFunction · 0.72
test_field_accessFunction · 0.72
test_map_blocks2Function · 0.72
test_astypeFunction · 0.72
test_from_funcFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…