(width, binwidth)
| 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. |