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 mpiarray global_slice Ellipsis check #284

Merged
merged 3 commits into from
Dec 11, 2024
Merged

Conversation

ljgray
Copy link
Contributor

@ljgray ljgray commented Dec 11, 2024

The check Ellipsis not in slobj fails if there is a np.ndarray in slobj, which ends up checking each object in the tuple and each item in the np.ndarray, and thus ends up failing with ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all(). This change just checks each object in slobj, which seems to work.

Also Ruff.

@ljgray ljgray merged commit a50ba09 into master Dec 11, 2024
7 checks passed
@ljgray ljgray deleted the ljg/mpiarray-global-slice branch December 11, 2024 21:56
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.

2 participants