Skip to content

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