-
Notifications
You must be signed in to change notification settings - Fork 158
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
Improving the lightkurve binning function by replacing the aggregate_downsample function #1328
base: main
Are you sure you want to change the base?
Improving the lightkurve binning function by replacing the aggregate_downsample function #1328
Conversation
I just wanted to point out that there are some issues with the computation of lightkurve/src/lightkurve/lightcurve.py Line 1498 in 209d0c8
See astropy/astropy#8326 (comment) and astropy/astropy#11357. This might be something we would want to consider changing within a newer implementation of |
…hard/lightkurve into replace_aggregate_downsample
This now should be functional and working to 0th order, implemented essentially the current defaults in the current version. Timing tests suggest a ~2.5x speedup: |
See this repo for some faster accumulation functions! |
Using that C library linked above, I get another order of magnitude speed up on my system! I'll look into contributing that upstream to astropy. |
Made further tweaks with @dfm! Current changes from the previous default behavior:
Some things that might be worth some discussion? (and what else?)
|
This looks really great @tylerapritchard let's update
Seems like you have good ideas on some sane defaults. This needs a minor version update when we merge it. |
This is a work-in-progress PR where we're looking at improving the binning functionality/accuracy/speed by replacing the
astropy
aggregate_downsample
call with a custom version that allows per-column aggregate functions, and by adding additional optimization toreduceat