Skip to content

Require NumPy 2 - #130

Merged
gerlero merged 1 commit into
mainfrom
numpy
Nov 24, 2025
Merged

Require NumPy 2#130
gerlero merged 1 commit into
mainfrom
numpy

Conversation

@gerlero

@gerlero gerlero commented Nov 24, 2025

Copy link
Copy Markdown
Owner

No description provided.

@codecov

codecov Bot commented Nov 24, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.13%. Comparing base (54b1903) to head (09d6faf).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #130   +/-   ##
=======================================
  Coverage   72.13%   72.13%           
=======================================
  Files           6        6           
  Lines         994      994           
=======================================
  Hits          717      717           
  Misses        277      277           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the minimum required NumPy version from 1.x to 2.x and migrates from the deprecated np.trapz function to its replacement np.trapezoid.

  • Updated minimum NumPy version constraint from >=1,<3 to >=2,<3 in dependencies
  • Replaced deprecated np.trapz with np.trapezoid in the sorptivity function
  • Updated type ignore comment to match the new function's behavior

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Updated NumPy dependency to require version 2 or later
src/fronts/_inverse.py Migrated from deprecated np.trapz to np.trapezoid and updated type ignore comment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@gerlero
gerlero merged commit 69e429d into main Nov 24, 2025
22 checks passed
@gerlero
gerlero deleted the numpy branch November 24, 2025 19:20
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