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: use normal indexing instead of boolean indexing #54

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

chanshing
Copy link
Member

Boolean indexing results in an assignment bug when the result is a single element: TypeError: NumPy boolean array indexing assignment requires a 0 or 1-dimensional input, input has 2 dimensions

Closes #53

Boolean indexing results in an assignment bug when the result is a single element: TypeError: NumPy boolean array indexing assignment requires a 0 or 1-dimensional input, input has 2 dimensions

Closes #53
@chanshing chanshing merged commit 1afed4e into main Feb 1, 2024
11 checks passed
@chanshing chanshing deleted the bugfix/boolean-indexing branch February 1, 2024 01:26
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.

TypeError: NumPy boolean array indexing assignment requires a 0 or 1-dimensional input, input has 2 dimensions
1 participant