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

Bin gkernel alignment #322

Merged
merged 6 commits into from
Feb 13, 2023
Merged

Bin gkernel alignment #322

merged 6 commits into from
Feb 13, 2023

Conversation

alexkjames
Copy link
Contributor

Align the behavior of bin and gkernel, and make it possible to easily pass bins for custom time axis resampling. Note that I could not use scipy.stats.binned_statistic for both functions because gkernel requires the usage of both the time and value axis when computing bin values, which the scipy function does not allow for. That being said, the way each function calculates bin edges should now be identical.

I considered using the same piece of code for both functions, but using the scipy code for the bin function makes it much more flexible in terms of what statistic can be calculated over the bins, which could be very valuable.

@alexkjames alexkjames requested a review from khider February 9, 2023 22:37
@alexkjames alexkjames self-assigned this Feb 9, 2023
@khider khider merged commit 5f93086 into Development Feb 13, 2023
@khider
Copy link
Member

khider commented Feb 13, 2023

Fantastic! Thanks and merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants