check_finite#
- check_finite(array: _ArrayLikeOrScalar[NumberType], /, *, name: str = 'Array') None[source]#
Check if an array has finite values, i.e. no NaN or Inf values.
- Parameters:
- Raises:
ValueErrorIf the array has any
InforNaNvalues.
See also
Examples#
Download Python source code | Download Jupyter notebook
Check if an array’s values are finite.
>>> from pyvista import _validation
>>> _validation.check_finite([1, 2, 3])