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

chore: remove double counting of reporting-only emissions in compliance summary service #2635

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

dleard
Copy link
Contributor

@dleard dleard commented Dec 20, 2024

Compliance summary was considering emissions from all emission categories when calculating the total allocated, but should have been only considering basic categories. This was highlighted by manual testing of expected values vs what the app is calculating, finding a .02% difference in the credited emissions.
After the work in this PR, the expected values from manual calculations vs the app show a .00000004% difference in credited emissions when using the same values. This can be attributed to slight differences in rounding after the 4th decimal point, which will be handled later pending a BA decision around precision.
Card: bcgov/cas-reporting#474

Copy link
Contributor

@pbastia pbastia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤯

@dleard dleard force-pushed the chore/compliance-summary-discrepancy branch from 58220d9 to 5640ad8 Compare December 21, 2024 00:37
@dleard dleard merged commit af6d0a5 into develop Dec 21, 2024
42 checks passed
@dleard dleard deleted the chore/compliance-summary-discrepancy branch December 21, 2024 00:51
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.

3 participants