MCPcopy Index your code
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
3033def 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

viewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…