Skip to content
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

help numba know the types #802

Merged
merged 1 commit into from Aug 2, 2019
Merged

help numba know the types #802

merged 1 commit into from Aug 2, 2019

Conversation

sbailey
Copy link
Contributor

@sbailey sbailey commented Aug 2, 2019

This PR enables numba to understand the types used within desispec.cosmics._reject_cosmic_rays_ala_sdss_single_numba and dilate_numba. I don't understand why it couldn't handle the previous more obvious dtype=int and dtype=bool, but that resulted in slews of numba deprecation warnings about falling back to object mode but finding lifted loops blah blah blah.

A secondary benefit of this is that it allows @numba.jit(nopython=True) which makes cosmic ray rejection ~2x faster resulting in ~20% faster preprocessing.

@lastephey
Copy link

lastephey commented Aug 2, 2019 via email

@sbailey sbailey merged commit 4bfa193 into master Aug 2, 2019
@sbailey sbailey deleted the numba-cosmics branch August 2, 2019 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants