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

Use the shuffle algorithm for take #11267

Merged
merged 26 commits into from
Aug 5, 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
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixup
  • Loading branch information
phofl committed Jul 31, 2024
commit 379cc9dc243e5bff4034efd27dd66172d5acf64e
2 changes: 1 addition & 1 deletion dask/array/_shuffle.py
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ def shuffle(x, indexer: list[list[int]], axis):
f"Axis {axis} is out of bounds for array with {len(x.chunks)} axes"
)

if max(map(max, indexer)) >= sum(x.chunks[axis]):
if max(map(max, indexer)) >= sum(x.chunks[axis]): # type: ignore[arg-type]
raise IndexError(
f"Indexer contains out of bounds index. Dimension only has {sum(x.chunks[axis])} elements."
)
Loading