Skip to content
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

Replace deprecated NumPy types (np.int and np.float) with int and float #542

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

GrillingUXO
Copy link

@GrillingUXO GrillingUXO commented Dec 10, 2024

Changes proposed in this pull request

NumPy deprecated np.int and np.float starting from version 1.20. Using these deprecated types triggers warnings or errors in modern Python environments. To ensure compatibility with newer NumPy versions, the code has been updated to use the recommended replacements.

This pull request fixes #.

Replaced all instances of np.int with int.
Replaced all instances of np.float with float.
Verified that functionality and type expectations remain consistent across all affected functions and classes.
These changes were tested by running the existing test suite using Python 3.9.7 and NumPy 1.24. No regressions or warnings were observed.

This Pull Request addresses #527

@superbock

@GrillingUXO GrillingUXO marked this pull request as draft December 10, 2024 20:07
@GrillingUXO GrillingUXO marked this pull request as ready for review December 10, 2024 20:09
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.

1 participant