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:3039–3043 ·
view source on GitHub ↗
(f)
Source
from the content-addressed store, hash-verified
3037
3038
3039
def
ensure_int(f):
3040
i = int(f)
3041
if
i != f:
3042
raise
ValueError(
"Could not coerce %f to integer"
% f)
3043
return
i
3044
3045
3046
@functools.lru_cache
Callers
1
view
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected