Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ ensure_int
Function
ensure_int
dask/array/core.py:3033–3037 ·
view source on GitHub ↗
(f)
Source
from the content-addressed store, hash-verified
3031
3032
3033
def
ensure_int(f):
3034
i = int(f)
3035
if
i != f:
3036
raise
ValueError(f
"Could not coerce {f:f} to integer"
)
3037
return
i
3038
3039
3040
@functools.lru_cache
Callers
1
view
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected