-
Notifications
You must be signed in to change notification settings - Fork 3
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
'bool' object has no attribute 'all' #69
Comments
https://stackoverflow.com/a/59345651/4012708 |
Also even if they were numpy arrays wouldn't this make it only return True if none of the elements are equal? |
Because this checks if all of them are True when you want to check if all of them are False (so |
Well the fix is wrong but now I can't reproduce the bug and I didn't attach an example file... |
Never mind, reproduced it |
I believe the desired behavior is to check if the two are equal. Because it may be either ndarray or a list, the best fix would be to check the length of the outside dimensions and use a for loop to compare each element if the lengths are equal. |
Oh, they are both Numpy arrays, but comparing them can return a single boolean sometimes for some reason |
@Robert-N7 My first thought was wrong, I assumed it was a list but it isn't |
I narrowed down the problem at https://replit.com/@HeathMitchell1/nparray |
Looks like the correct fix is to use https://numpy.org/doc/stable/reference/generated/numpy.array_equal.html |
Made a new PR: #71 |
(this is using VS Code so the stacktrace is backwards from usual)
The text was updated successfully, but these errors were encountered: