-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Test: Use a numba-powered function for median sigma clipping #632
Conversation
For the example in #624 (comment) the new version takes 1min 24s while the old version takes 4min 25s on my computer for the |
I also did a line-profiling of The really important line here is the one that does the clipping:
However I also copied the complete line-profiling, just in case Old
New
Especially interesting here: One could also use that function (slightly modified) to also speed up the |
@mwcraig @crawfordsm Independent of this PR, what's your general opinion regarding numba? Should we avoid it and rather use Cython/C extensions or would numba be okay (as optional dependency)? |
Just a test (see also #624 (comment)), it's not meant to be merged 😄
Related to #624