pyvista.core._validation.check.check_integer#
- check_integer( ) None[source]#
Check if an array has integer or integer-like float values.
- Parameters:
- Raises:
ValueErrorIf any element’s value differs from its floor.
TypeErrorIf
strict=Trueand the array’s dtype is not integral.
See also
Examples
Check if an array has integer-like values.
>>> from pyvista import _validation >>> _validation.check_integer([1.0, 2.0])