-
Notifications
You must be signed in to change notification settings - Fork 565
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
replace np.int
with np.int64
#1017
Conversation
`np.int` has been deprecated, suggest changing to `np.int64`
Update plot_util.py
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## devel #1017 +/- ##
=======================================
Coverage 54.49% 54.49%
=======================================
Files 210 210
Lines 21560 21560
Branches 3169 3169
=======================================
Hits 11750 11750
Misses 9255 9255
Partials 555 555 |
@zhenwendai @MartinBubel, you're some of the last commit authors in the history. Any chance we can get this committed and a new version cut soon? There are several projects that rely on it that are currently having issues with recently Python and numpy version mismatches. |
Thanks for picking this up @cycl0n3sab3r . Regarding the deprecations site, I think this is more "save" as Also, there are a lot more usages of Furthermore, this is not the first PR concerning deprecated numpy types. Could you please check the usage of any of the deprecated types in this table and replace them as recommended at the above table? That would be very helpful. I could also do it but I think its best if you update your PR. @bpkroth I won't be allowed to merge. Maybe @zhenwendai can help. |
I'm in favor of incremental fixes, personally - no need to saddle the contributor with the extra work for code paths that are either not covered by testing or not frequently used. IMHO. That said, Martin, your point on using |
Configurable type with base
But so far I could not find anything suspicious on the type yet. |
CI says ok, let's merge. If we get bug reports on the new version we can revert and release anew. We also need to release to PyPi pretty ASAP... it's been a while. |
np.int
deprecated in numpy 1.20 and removed in numpy 1.24, suggest replacing withnp.int64