pyvista.core._validation.check.check_finite#
- check_finite(arr, /, *, name='Array')[source]#
Check if an array has finite values, i.e. no NaN or Inf values.
- Parameters:
- arrarray_like
Array to check.
- name
str
, default: “Array” Variable name to use in the error messages if any are raised.
- Raises:
ValueError
If the array has any
Inf
orNaN
values.
See also
Examples
Check if an array’s values are finite.
>>> from pyvista import _validation >>> _validation.check_finite([1, 2, 3])