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

Function inds

dask/layers.py:284–292  ·  view source on GitHub ↗
(i, ind, depth)

Source from the content-addressed store, hash-verified

282 return depth
283
284 def inds(i, ind, depth):
285 depth = convert_depth(depth)
286 rv = []
287 if ind - 0.9 > 0 and depth[0] != 0:
288 rv.append(ind - 0.9)
289 rv.append(ind)
290 if ind + 0.9 < dims[i] - 1 and depth[1] != 0:
291 rv.append(ind + 0.9)
292 return rv
293
294 shape = []
295 for i, ind in enumerate(k[1:]):

Callers 1

Calls 1

convert_depthFunction · 0.85

Tested by

no test coverage detected