8000 BUG: Fix return shape of inverse_indices in unique_inverse by jakevdp · Pull Request #25553 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Fix return shape of inverse_indices in unique_inverse #25553

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

Merged
merged 5 commits into from
Jan 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
F 8000 ailed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add additional unique_inverse test
  • Loading branch information
jakevdp committed Jan 10, 2024
commit 01be9177e62427e0052dbccf74698562fdb7494c
1 change: 1 addition & 0 deletions numpy/lib/tests/test_arraysetops.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,3 +960,4 @@ def test_unique_inverse_shape(self):
result = func(arr)
assert_array_equal(expected_values, result.values)
assert_array_equal(expected_inverse, result.inverse_indices)
assert_array_equal(arr, result.values[result.inverse_indices])
0