Skip to content

Conversation

@emmanuel-ferdman
Copy link
Contributor

PR Summary

This small PR resolves deprecation warnings caused by the use of numpy.in1d:

DeprecationWarning: `in1d` is deprecated. Use `np.isin` instead.

Please note that in1d is deprecated from NumPy 1.19.0 and removed in 2.0.0. isin available since Python 1.13.0.

Signed-off-by: Emmanuel Ferdman <[email protected]>
@emmanuel-ferdman emmanuel-ferdman requested review from a team, mananshah99 and wsad1 as code owners May 18, 2025 11:44
Copy link
Member

@akihironitta akihironitta left a comment

Choose a reason for hiding this comment

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

Thanks, this is great! Could we also fail the CI when there's DeprecationWarning raised from our tests by listing the warning here?

filterwarnings = [

@akihironitta
Copy link
Member

It'd be good to update the changelog as well.

@emmanuel-ferdman emmanuel-ferdman changed the title Migrate to modern NumPy interface Fix NumPy deprecations and enforce CI failure on warnings May 18, 2025
@emmanuel-ferdman
Copy link
Contributor Author

@akihironitta sure, added all 😄

@akihironitta
Copy link
Member

Sorry about the delay. Thanks, I'll check during the weekend :)

@akihironitta akihironitta self-assigned this Jun 7, 2025
@akihironitta akihironitta enabled auto-merge (squash) June 7, 2025 10:20
@akihironitta akihironitta merged commit 0d013cf into pyg-team:master Jun 7, 2025
12 of 17 checks passed
@codecov
Copy link

codecov bot commented Jun 7, 2025

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.58%. Comparing base (c211214) to head (977106d).
⚠️ Report is 102 commits behind head on master.

Files with missing lines Patch % Lines
torch_geometric/loader/ibmb_loader.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10283      +/-   ##
==========================================
- Coverage   86.11%   85.58%   -0.53%     
==========================================
  Files         496      498       +2     
  Lines       33655    34146     +491     
==========================================
+ Hits        28981    29223     +242     
- Misses       4674     4923     +249     

☔ 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.

chrisn-pik pushed a commit to chrisn-pik/pytorch_geometric that referenced this pull request Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants