Skip to content
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

fix bug where some 2D arrays are not accepted instead lists of 1D arrays #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

regislachaume
Copy link

Fix proposed for Issue #10.

"The code is comparing to None with the operators == and != instead of the correct (and more efficient) pythonic idiom is or is not. Thus, an if clause fails on a numpy array because == and != operate elementwise, while is and is not return a scalar bool"

@ortega2247
Copy link
Contributor

Hi! Thank you for your contribution. Could you please rebase your branch to the master to see if the tests pass now. Additionally, could you also add some test cases for the 2D arrays. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants