Instead of: ``` if isinstance(X, np.ndarray): ... else: print("wrong")` ``` you could write: ``` assert isinstance(X, np.ndarray), "X must be a bumpy array!' ``` Just a hint to avoid loads of indentation when you have many args!
Instead of:
you could write:
Just a hint to avoid loads of indentation when you have many args!