MCPcopy Index your code
hub / github.com/numpy/numpy / err_if_insufficient

Function err_if_insufficient

numpy/_core/numeric.py:2063–2067  ·  view source on GitHub ↗
(width, binwidth)

Source from the content-addressed store, hash-verified

2061
2062 """
2063 def err_if_insufficient(width, binwidth):
2064 if width is not None and width < binwidth:
2065 raise ValueError(
2066 f"Insufficient bit {width=} provided for {binwidth=}"
2067 )
2068
2069 # Ensure that num is a Python integer to avoid overflow or unwanted
2070 # casts to floating point.

Callers 1

binary_reprFunction · 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…