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

Method _layer

dask/_expr.py:1394–1404  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1392 return [self._name]
1393
1394 def _layer(self) -> dict:
1395 func, extra_args = self.collection.__dask_postcompute__()
1396 keys = [expr.__dask_keys__() for expr in self.exprs]
1397 return {
1398 self._name: Task(
1399 self._name,
1400 func,
1401 _convert_dask_keys(keys),
1402 *extra_args,
1403 )
1404 }
1405
1406
1407class ProhibitReuse(Expr):

Callers

nothing calls this directly

Calls 4

TaskClass · 0.90
_convert_dask_keysFunction · 0.70
__dask_postcompute__Method · 0.45
__dask_keys__Method · 0.45

Tested by

no test coverage detected