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: address incorrect boundary conditions in searchsorted #898

Merged
merged 6 commits into from
Feb 17, 2025

Conversation

kgryte
Copy link
Contributor

@kgryte kgryte commented Feb 6, 2025

This PR

  • closes [BUG]: searchsorted has incorrect boundary conditions #861 by fixing boundary conditions in searchsorted. The original specification incorrectly described behavior when an index fails to satisfy the index condition. This bug has been addressed and backported to the v2023 revision of the standard.
  • fixes typos in the original specification and current draft.

cc @mdhaber

@kgryte kgryte added the Maintenance Bug fix, typo fix, or general maintenance. label Feb 6, 2025
@kgryte kgryte added this to the v2024 milestone Feb 6, 2025
@kgryte kgryte added the Backport Changes involve backporting to previous versions. label Feb 6, 2025
Copy link
Contributor

@mdhaber mdhaber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is much better. For maximal clarity within the structure you have proposed, I have a few suggestions.

@kgryte
Copy link
Contributor Author

kgryte commented Feb 17, 2025

Thanks, @mdhaber, for your review. As all suggestions were accepted, I'll go ahead and merge.

@kgryte kgryte merged commit 287b834 into data-apis:main Feb 17, 2025
3 checks passed
@kgryte kgryte deleted the fix/searchsorted-index-conditions branch February 17, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport Changes involve backporting to previous versions. Maintenance Bug fix, typo fix, or general maintenance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: searchsorted has incorrect boundary conditions
2 participants