Skip to content

Replace deprecated np.alltrue for NumPy 2.0 compatibility #11

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shreyanshjain05
Copy link

The function np.alltrue was deprecated and removed in NumPy 2.0. This commit replaces all instances of np.alltrue with np.all to ensure compatibility with NumPy 2.0 and later versions. The np.all function performs the same check to determine if all elements of an array are True (or meet a given condition).

This change addresses the deprecation warning and ensures that the code works with the latest version of NumPy.

The function np.alltrue was deprecated and removed in NumPy 2.0. This commit replaces all instances of np.alltrue with np.all to ensure compatibility with NumPy 2.0 and later versions. The np.all function performs the same check to determine if all elements of an array are True (or meet a given condition).

This change addresses the deprecation warning and ensures that the code works with the latest version of NumPy.
@Nathan-Salawe
Copy link

@Utkarsh-Deshmukh can you merge this change?

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