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

Update how annual totals are recorded in the quantification package #389

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rlfarman
Copy link
Contributor

@rlfarman rlfarman commented Nov 6, 2023

To allow SAMs better insights into how the somsc differences were calculated, we should also record the numbers used to generate the differences (IE - the totals for both the future and baseline scenarios).

More work to be done in terms of how this affects how quantification results are consumed by other Nori services, but this at least gives us the opportunity to run the quantification CLI to get these results (since our SAMs need these numbers now).

mapUnitAreaInM2: number;
}): number => {
const gramsOfCarbonForMapUnitInM2 = multiply(gramsPerM2, mapUnitAreaInM2);
const tonnesOfCarbonForMapUnit = divide(
Copy link
Contributor

Choose a reason for hiding this comment

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

fwiw the unit utility from mathjs is better suited for this purpose. I'm posting this just as a reminder for the future, I don't think that change needs to happen here

Copy link
Contributor

@jaycenhorton jaycenhorton left a comment

Choose a reason for hiding this comment

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

could benefit from tests since this package is quite hard to test e2e, but lgtm otherwise

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