Skip to content

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

Open
JinruG wants to merge 7 commits into
CPJKU:mainfrom
JinruG:main
Open

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

Conversation

@JinruG

@JinruG JinruG commented Dec 10, 2024

Copy link
Copy Markdown

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

@JinruG
JinruG marked this pull request as draft December 10, 2024 20:07
@JinruG
JinruG marked this pull request as ready for review December 10, 2024 20:09
@jvaleroliet

Copy link
Copy Markdown

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