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

Bugfix: Off-by-one on stats calculation for leading nulls #268

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

jdcasale
Copy link
Contributor

@jdcasale jdcasale commented Apr 26, 2024

If we don't skip the first n+1 values for an array with leading nulls (where n is the length of the leading null run), we end up double counting the first value, because we initialize the stats object with that first value.

@jdcasale jdcasale marked this pull request as ready for review April 26, 2024 16:36
@gatesn gatesn enabled auto-merge (squash) April 26, 2024 16:37
@jdcasale jdcasale changed the title Bugfix: Don't skip first element in stats calculation Bugfix: Off-by-one on stats calculation for leading nulls Apr 26, 2024
@gatesn gatesn merged commit 09b70f4 into develop Apr 26, 2024
2 checks passed
@gatesn gatesn deleted the jc/stats-bug branch April 26, 2024 17:17
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.

2 participants