pyvista.core._validation.check.check_sequence#
- check_sequence( ) None [source]#
Check if an object is an instance of
Sequence
.- Parameters:
- obj
Sequence
Object to check.
- name
str
, default: “Object” Variable name to use in the error messages if any are raised.
- obj
- Raises:
TypeError
If input is not an instance of
Sequence
.
See also
Examples
Check if an object is a sequence.
>>> import numpy as np >>> from pyvista import _validation >>> _validation.check_sequence([1, 2, 3]) >>> _validation.check_sequence('A')