MCPcopy
hub / github.com/dask/dask / keys

Method keys

dask/array/_array_expr/_expr.py:83–93  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

81 name, chunks, numblocks = out.name, out.chunks, out.numblocks
82
83 def keys(*args):
84 if not chunks:
85 return List(TaskRef((name,)))
86 ind = len(args)
87 if ind + 1 == len(numblocks):
88 result = List(
89 *(TaskRef((name,) + args + (i,)) for i in range(numblocks[ind]))
90 )
91 else:
92 result = List(*(keys(*(args + (i,))) for i in range(numblocks[ind])))
93 return result
94
95 return keys()
96

Callers 11

test_stackFunction · 0.45
test_concatenateFunction · 0.45
funcFunction · 0.45
test_from_array_namesFunction · 0.45
test_dask_layersFunction · 0.45
test_take_sorted_indexerFunction · 0.45
test_basicFunction · 0.45
as_gufuncFunction · 0.45
map_overlapFunction · 0.45

Calls 2

ListClass · 0.90
TaskRefClass · 0.90

Tested by 9

test_stackFunction · 0.36
test_concatenateFunction · 0.36
funcFunction · 0.36
test_from_array_namesFunction · 0.36
test_dask_layersFunction · 0.36
test_take_sorted_indexerFunction · 0.36
test_basicFunction · 0.36