check_numpy_array
- ssapy.plotUtils.check_numpy_array(variable: ndarray | list) str [source][source]
Checks if the input variable is a NumPy array, a list of NumPy arrays, or neither.
- Parameters:
variable (Union[np.ndarray, list]) – The variable to check. It can either be a NumPy array or a list of NumPy arrays.
- Returns:
Returns a string indicating the type of the variable: - “numpy array” if the variable is a single NumPy array, - “list of numpy array” if it is a list of NumPy arrays, - “not numpy” if it is neither.
- Return type: