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

modify np.int -> int #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

modify np.int -> int #32

wants to merge 1 commit into from

Conversation

PFery4
Copy link

@PFery4 PFery4 commented Jun 29, 2023

I modified the code in preprocessor.py. instances of np.int have been replaced by int. This is done in accordance with the release notes of numpy version 1.20.0, stating the deprecation of the np.int datatype:
https://numpy.org/devdocs/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecated

the modification does not alter the behaviour of the code in any way, but will reduce the amount of warning messages. Note that it also complies with the minimal case where the user has installed python version 3.7, and pip installed the requirements.txt file. In that case, the installed numpy version is superior to 1.20.0, ensuring that the code will function properly.

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