Skip to content

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

Open
GrillingUXO wants to merge 7 commits intoCPJKU:mainfrom
GrillingUXO:main
Open

Replace deprecated NumPy types (np.int and np.float) with int and float#542
GrillingUXO wants to merge 7 commits intoCPJKU:mainfrom
GrillingUXO:main

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
@jvaleroliet
Copy link

Please!

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