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

Method keys

dask/layers.py:189–197  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

187 name, chunks, numblocks = self.name, self.chunks, self.numblocks
188
189 def keys(*args):
190 if not chunks:
191 return [(name,)]
192 ind = len(args)
193 if ind + 1 == len(numblocks):
194 result = [(name,) + args + (i,) for i in range(numblocks[ind])]
195 else:
196 result = [keys(*(args + (i,))) for i in range(numblocks[ind])]
197 return result
198
199 self._cached_keys = result = keys()
200 return result

Callers 1

get_output_keysMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected