Skip to content

Asserts #6

@jaketmp

Description

@jaketmp

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions