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 ranges tests #164

Merged
merged 3 commits into from
Jan 12, 2024
Merged

Fix ranges tests #164

merged 3 commits into from
Jan 12, 2024

Conversation

mhasself
Copy link
Member

This started as a bug fix to RangesMatrix (dtype == bool rather than dtype is bool), but ended up with:

  • that bugfix
  • now accepts a single numpy array as an index [] (doesn't have to be wrapped in a tuple)
  • tests are improved to cover the bugfix, and indexing with arrays
  • erroneous use of assertCountEqual replaced with numpy.testing.assert*

@mhasself mhasself merged commit 4e8beac into master Jan 12, 2024
4 checks passed
@mhasself mhasself deleted the fix-ranges-tests branch April 25, 2024 18:34
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.

1 participant