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.
I modified the code in
preprocessor.py
. instances ofnp.int
have been replaced byint
. This is done in accordance with the release notes of numpy version 1.20.0, stating the deprecation of thenp.int
datatype: https://numpy.org/devdocs/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecatedthe 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.