Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BUG: Fixfrom_float_positional errors for huge pads#28208

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
charris merged 1 commit intonumpy:maintenance/2.2.xfromcharris:backport-28149
Jan 21, 2025

Conversation

charris
Copy link
Member

Backport of#28149.

This PR adds graceful error handling for np.format_float_positional when provided pad_left or pad_right arguments are too large.

In such cases, a ValueError exception is raised.
Added tests and updated the doc to describe limits on pad_left and pad_right

fixes#28068

  • TST: Added tests for correct handling of overflow

  • BUG: fixed pad_left and pad_right causing overflow if too large

  • TST: added overflow test and fixed formatting

  • BUG: fixed overflow checks and simplified error handling

  • BUG: rewritten excpetion message and fixed overflow check

  • TST: split test into smaller tests, added large input value

  • Apply suggestions from code review


This PR adds graceful error handling for np.format_float_positional  when provided pad_left or pad_right arguments are too large.* TST: Added tests for correct handling of overflow* BUG: fixed pad_left and pad_right causing overflow if too large* TST: added overflow test and fixed formatting* BUG: fixed overflow checks and simplified error handling* BUG: rewritten excpetion message and fixed overflow check* TST: split test into smaller tests, added large input value* Apply suggestions from code review---------Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
@charrischarris added 00 - Bug 08 - BackportUsed to tag backport PRs labelsJan 21, 2025
@charrischarris added this to the2.2.3 release milestoneJan 21, 2025
@charrischarris merged commit5c12602 intonumpy:maintenance/2.2.xJan 21, 2025
68 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
00 - Bug08 - BackportUsed to tag backport PRs
Projects
None yet
Milestone
2.2.3 release
Development

Successfully merging this pull request may close these issues.

2 participants
@charris@yakovdan

[8]ページ先頭

©2009-2025 Movatter.jp