8000 Asserts · Issue #6 · ocloarec/pyPLS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Asserts #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jaketmp opened this issue Mar 10, 2016 · 0 comments
Open

Asserts #6

jaketmp opened this issue Mar 10, 2016 · 0 comments

Comments

@jaketmp
Copy link
Collaborator
jaketmp commented Mar 10, 2016

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0