-
Notifications
You must be signed in to change notification settings - Fork 83
CI/CD - Update the NumPy/Pandas API usage #774
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
base: hongtaozhang/fix-image-build
Are you sure you want to change the base?
CI/CD - Update the NumPy/Pandas API usage #774
Conversation
… backward compatibility with earlier versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request updates the NumPy API usage to support NumPy 1.22.0+ while maintaining backward compatibility with earlier versions. The change addresses the deprecation and eventual removal of the interpolation parameter in np.percentile(), which was replaced with the method parameter.
Changes:
- Updated
_process_percentile_resultmethod to use try-except pattern for NumPy API compatibility - Attempts to use the newer
methodparameter first, falling back to deprecatedinterpolationparameter for older NumPy versions
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## hongtaozhang/fix-image-build #774 +/- ##
=============================================================
Coverage 85.69% 85.70%
=============================================================
Files 102 102
Lines 7699 7703 +4
=============================================================
+ Hits 6598 6602 +4
Misses 1101 1101
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Update exception handler. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Remove redundant logic. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Revert to previous version. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
Solution