Fix types in beat tracking code#1977
Conversation
|
Thanks for this - it appears to be the result of the fix for numba/numba#9909 I'd like to hold off on doing anything with this until 0.62 is final, or we somehow get #1528 off the ground, as we can't otherwise verify that it works properly in CI. I think the solution implemented here looks fine, though the explicit cast to int for |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 1.0.0dev #1977 +/- ##
=========================================
Coverage 98.72% 98.72%
=========================================
Files 35 35
Lines 4628 4628
=========================================
Hits 4569 4569
Misses 59 59
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The development version of Numba 0.62.0 is unhappy about `range` being applied to floating point values here.
caa1c77 to
902bcca
Compare
|
Very reasonable, both on waiting on CI and on the cast. I’ve pushed a much simpler fix to preserve the previous behaviour without changing the types. |
|
Thanks @emilazy - hitting lint errors because the main branch is a bit stale right now. I'm rebasing to the 1.0dev branch just to get past that. |
|
FWIW, it looks like Numba plan to roll back the change due to it also causing issues with integers of mixed signedness. I assume the check for floats will return at some point though (this code doesn’t work in vanilla Python either), so this will still be relevant then. |
|
Ok, thanks for the heads up @emilazy. I guess this is now a fairly innocuous change, but I see no reason to delay merging. Is there anything else to do here for now? |
|
It should be good to go as far as I’m concerned, if you want to hit the button :) Thanks for the review! |
|
Done - thanks again! |
Reference Issue
What does this implement/fix? Explain your changes.
The development version of Numba 0.62.0 is unhappy about
rangebeing applied to floating point values here.Any other comments?