MCPcopy Create free account
hub / github.com/numpy/numpy / warn_if_insufficient

Function warn_if_insufficient

numpy/core/numeric.py:2008–2013  ·  view source on GitHub ↗
(width, binwidth)

Source from the content-addressed store, hash-verified

2006
2007 """
2008 def warn_if_insufficient(width, binwidth):
2009 if width is not None and width < binwidth:
2010 warnings.warn(
2011 "Insufficient bit width provided. This behavior "
2012 "will raise an error in the future.", DeprecationWarning,
2013 stacklevel=3)
2014
2015 # Ensure that num is a Python integer to avoid overflow or unwanted
2016 # casts to floating point.

Callers 1

binary_reprFunction · 0.85

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected