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