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:3028–3032 ·
view source on GitHub ↗
(f)
Source
from the content-addressed store, hash-verified
3026
3027
3028
def
ensure_int(f):
3029
i = int(f)
3030
if
i != f:
3031
raise
ValueError(f
"Could not coerce {f:f} to integer"
)
3032
return
i
3033
3034
3035
@functools.lru_cache
Callers
1
view
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected