check_type
- ssapy.plotUtils.check_type(t)[source][source]
Determines the type of the input and provides a description based on its structure.
This function checks the input t and returns a string describing its type or structure: - If t is None, it returns None. - If t is a list, it checks whether all elements in the list are either lists or NumPy arrays:
Returns “List of arrays” if all elements are lists or arrays.
Returns “List of non-arrays” if not all elements are lists or arrays.
If t is a Time object or a NumPy array, it returns “Single array or list”.
For any other type, it returns “Not a list or array”.
- Parameters:
t (Any) – The input to be checked.
- Returns:
A description of the type or structure of t.
- Return type:
str or None