buffalo_core.numeric.as_int_scalar
- buffalo_core.numeric.as_int_scalar(value)[source]
Normalize a scalar-like numeric value to a Python
int.- Parameters:
value (
buffalo_core.typing.IntInput) – Scalar-like numeric input expected to contain exactly one value.- Returns:
Python
intextracted from the normalized input.- Return type:
int
Notes
This helper is useful at third-party boundaries and other scalar-only interfaces that require a native Python int rather than a NumPy scalar or one-element array.