usnistgov / E3

API that provides standards based economic calculations.
Other
6 stars 3 forks source link

Add CostSum by Tag to Summary Results #23

Closed jkneifel closed 3 years ago

jkneifel commented 3 years ago

I am having issues trying to compare results between BLCC and E3 quickly because the cost flows by tag are not aggregated in the results anywhere. I can use the annual cash flows, but that takes a lot more time relative to comparing summed total costs by tag. We can replicate QuantSum by Tag to do this.

dw13813 commented 3 years ago

It looks like AlternativeSummary is missing the aggregation variable. For now you should be able to pull the Optional Flows objects which contain the annual flows for each tag. This should prevent you from having to identify tagged flows and individually add them.

The process for adding the aggregated costs would be as follows:

  1. Add a variable to AlternativeSummary (could call it totTagFlows)
  2. Add a function in measures which sums the cash flows for tags (similar to the way the code currently calculates quantSum for the AlternativeSummary objects, just pulling the discounted cash flow instead of the quantity flow)

David

From: jkneifel @.> Reply-To: usnistgov/E3 @.> Date: Tuesday, October 19, 2021 at 12:22 PM To: usnistgov/E3 @.> Cc: Subscribed @.> Subject: [usnistgov/E3] Add CostSum by Tag to Summary Results (Issue #23)

I am having issues trying to compare results between BLCC and E3 quickly because the cost flows by tag are not aggregated in the results anywhere. I can use the annual cash flows, but that takes a lot more time relative to comparing summed total costs by tag.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/usnistgov/E3/issues/23, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AANSOMEEJMQVQBFCXOYTIQDUHWLKLANCNFSM5GJSAOEA. Triage notifications on the go with GitHub Mobile for iOShttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cdavid.webb%40nist.gov%7C5a641807efad4bc5a15b08d9931c9478%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637702573225190082%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=83S23UksWl1pu95llaKT%2Bd52Gb3w5bu8AXeGRG2CHs4%3D&reserved=0 or Androidhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cdavid.webb%40nist.gov%7C5a641807efad4bc5a15b08d9931c9478%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637702573225200036%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=SORu%2B0ZcYXghPoJZjUQBhZJKkfmEuE9%2BSdEA3R24TDA%3D&reserved=0.