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