-
Notifications
You must be signed in to change notification settings - Fork 27
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
Remove Cython dependency #74
Comments
I find the numpy/bottleneck implementation cleaner. |
That's really nice! |
👍 for the numpy + bottleneck variant! |
A clear plus for numpy + bottleneck is that both packages have a major version greater than one. People could argue that a stable release should be a minimum requirement for production code. |
This is not a good reason for choosing packages in the python ecosystem, especially the scientific python ecosystem. I've argued the point that Cython needs to go to version 1.0 in the past on other forums, but they had their own timeline for things. Regardless, it looks like Cython is working on a 3.0 release: https://pypi.org/project/Cython/#history (skipping 1.0 and 2.0) |
@djhoese, that's true, good example for your point is the pandas library. It was the first choice for many things long before the release of 1.0 on January this year. |
It would be nice to replace
correct_tsm_issue.mean_filter
with a pure python implementation.A possible solution is:
Using bottleneck instead of the equivalent numpy function reduces the processing time to become competitive with Cython or numba.
Another possibility would be an implementation with numba:
Edit: Slightly cleaner numba implementation.
The text was updated successfully, but these errors were encountered: