Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ convert_depth
Function
convert_depth
dask/layers.py:279–282 ·
view source on GitHub ↗
(depth)
Source
from the content-addressed store, hash-verified
277
""
"
278
279
def
convert_depth(depth):
280
if
not isinstance(depth, tuple):
281
depth = (depth, depth)
282
return
depth
283
284
def
inds(i, ind, depth):
285
depth = convert_depth(depth)
Callers
2
inds
Function · 0.85
_expand_keys_around_center
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected