Skip to content

fix: replace deprecated numpy in1d with isin for array comparison#4356

Merged
germa89 merged 3 commits intomainfrom
fix/numpy-in1d-deprecated
Jan 2, 2026
Merged

fix: replace deprecated numpy in1d with isin for array comparison#4356
germa89 merged 3 commits intomainfrom
fix/numpy-in1d-deprecated

Conversation

@germa89
Copy link
Collaborator

@germa89 germa89 commented Jan 2, 2026

Description

As the title.

Issue linked

Close #4355

Checklist

@germa89 germa89 self-assigned this Jan 2, 2026
@germa89 germa89 requested a review from a team as a code owner January 2, 2026 10:58
Copy link
Contributor

Copilot AI left a 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 PR replaces the deprecated NumPy in1d function with its recommended replacement isin for array membership testing, addressing issue #4355.

Key Changes:

  • Updated array comparison logic to use the modern NumPy API

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

@germa89
Copy link
Collaborator Author

germa89 commented Jan 2, 2026

@pyansys-ci-bot LGTM.

@germa89 germa89 enabled auto-merge (squash) January 2, 2026 10:58
Copy link
Contributor

@pyansys-ci-bot pyansys-ci-bot left a comment

Choose a reason for hiding this comment

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

✅ Approving this PR because germa89 said so in here 😬

LGTM

@github-actions github-actions bot added the bug Issue, problem or error in PyMAPDL label Jan 2, 2026
@codecov
Copy link

codecov bot commented Jan 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.26%. Comparing base (d693446) to head (e88199e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4356      +/-   ##
==========================================
- Coverage   91.32%   91.26%   -0.06%     
==========================================
  Files         195      196       +1     
  Lines       15969    15977       +8     
==========================================
- Hits        14584    14582       -2     
- Misses       1385     1395      +10     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@germa89 germa89 merged commit 1044ee8 into main Jan 2, 2026
49 checks passed
@germa89 germa89 deleted the fix/numpy-in1d-deprecated branch January 2, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue, problem or error in PyMAPDL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecated in1d numpy function

3 participants