MCPcopy
hub / github.com/dask/dask / grid_points

Function grid_points

dask/array/svg.py:268–271  ·  view source on GitHub ↗
(chunks, sizes)

Source from the content-addressed store, hash-verified

266
267
268def grid_points(chunks, sizes):
269 cumchunks = [np.array(cached_cumsum(c, initial_zero=True)) for c in chunks]
270 points = [x * size / x[-1] for x, size in zip(cumchunks, sizes)]
271 return points
272
273
274def draw_sizes(shape, size=200):

Callers 2

svg_2dFunction · 0.85
svg_3dFunction · 0.85

Calls 1

cached_cumsumFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…