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

Method step

dask/array/_array_expr/_creation.py:92–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

90
91 @functools.cached_property
92 def step(self):
93 range_ = self.stop - self.start
94
95 div = (self.num_rows - 1) if self.endpoint else self.num_rows
96 if div == 0:
97 div = 1
98
99 return float(range_) / div
100
101 def _layer(self) -> dict:
102 dsk = {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected