MCPcopy 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
3039def 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

viewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected