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

Method __dask_keys__

dask/array/core.py:1398–1415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1396 return (self.name,)
1397
1398 def __dask_keys__(self) -> NestedKeys:
1399 if self._cached_keys is not None:
1400 return self._cached_keys
1401
1402 name, chunks, numblocks = self.name, self.chunks, self.numblocks
1403
1404 def keys(*args):
1405 if not chunks:
1406 return [(name,)]
1407 ind = len(args)
1408 if ind + 1 == len(numblocks):
1409 result = [(name,) + args + (i,) for i in range(numblocks[ind])]
1410 else:
1411 result = [keys(*(args + (i,))) for i in range(numblocks[ind])]
1412 return result
1413
1414 self._cached_keys = result = keys()
1415 return result
1416
1417 def __dask_tokenize__(self):
1418 return self.name

Callers 15

_key_arrayMethod · 0.95
to_delayedMethod · 0.95
apply_gufuncFunction · 0.45
concatenate_array_chunksFunction · 0.45
setitem_arrayFunction · 0.45
to_npy_stackFunction · 0.45
reshapeFunction · 0.45
_choice_validate_paramsFunction · 0.45
percentileFunction · 0.45
histogramFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected