org-arl / arlpy

ARL Python Tools
BSD 3-Clause "New" or "Revised" License
118 stars 37 forks source link

np.int is deprecated in numpy == 1.20.0 #77

Closed rigelifland closed 1 year ago

rigelifland commented 1 year ago

arlpy breaks with numpy >= 1.20.0 because np.int has been deprecated: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

According to the patch notes int is an identical replacement. I'm happy to submit a PR, but I wanted to check if int (which can be either 64bit or 32bit depending on OS) is the desired behavior, or if it should be explicitly specified (np.int32 or np.int64)

rigelifland commented 1 year ago

Nevermind, this was already addressed in https://github.com/org-arl/arlpy/commit/22044b17cdf9880bd4302d2d6b339b450c372277