Skip to content

Replace deprecated np.alltrue for NumPy 2.0 compatibility#11

Open
shreyanshjain05 wants to merge 1 commit into
Utkarsh-Deshmukh:masterfrom
shreyanshjain05:patch-1
Open

Replace deprecated np.alltrue for NumPy 2.0 compatibility#11
shreyanshjain05 wants to merge 1 commit into
Utkarsh-Deshmukh:masterfrom
shreyanshjain05:patch-1

Conversation

@shreyanshjain05

Copy link
Copy Markdown

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
Copy Markdown

@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