forked from astropy/astropy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To improve the
aggregate_downsample
performance by using a new defa…
…ult `aggregate_func` (astropy#17574) Add a nw default aggregate_func that can take an array an do `nanmean` on pieces much more efficiently that looping over the pieces by replacing `nan` with `0`, using `np.add.reduceat` and doing counts appropriately for calculating the mean. --------- Co-authored-by: Clément Robert <[email protected]>
- Loading branch information
1 parent
654e241
commit 954300c
Showing
3 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Improved the ``aggregate_downsample`` performance using a new default ``aggregate_func``. |