Skip to content

Issue 2190: Add AR6 Support for GWPs#2214

Merged
rmroot merged 5 commits intodevelopfrom
issue-2190-AR6
Jan 22, 2026
Merged

Issue 2190: Add AR6 Support for GWPs#2214
rmroot merged 5 commits intodevelopfrom
issue-2190-AR6

Conversation

@rmroot
Copy link
Copy Markdown
Member

@rmroot rmroot commented Jan 22, 2026

connects #2190

This pull request updates the calendarization and analysis calculation logic to support passing custom Global Warming Potentials (GWPs) throughout the application. The changes primarily involve updating function signatures and internal calls to accept and propagate an array of custom GWPs, as well as refactoring the usage of the assessmentReportVersion parameter to use a dedicated type. Additionally, there are improvements to the initialization of custom GWPs in the app component.

Support for custom GWPs in calendarization and analysis calculations:

  • Updated the getCalanderizedMeterData function and all related calendarization functions (calanderizeMeterData, calanderizeMeterDataBackwards, calanderizeMeterDataFullMonth, calanderizeFullYear, getBillPeriodTotal) to accept and propagate an array of IdbCustomGWP objects, allowing custom GWPs to be used in emissions calculations. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

  • Updated all calls to getCalanderizedMeterData in analysis and report classes (MonthlyAccountAnalysisClass, BetterPlantsReportClass) to include the new customGWPs parameter, ensuring custom GWPs are available throughout the analysis pipeline. [1] [2] [3]

Refactoring and type improvements:

  • Replaced the use of string literals for assessmentReportVersion parameters with the AssessmentReportVersion type throughout the codebase for improved type safety and maintainability. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

Custom GWP initialization improvements:

  • Enhanced the initializeCustomGWPs method in AppComponent to update and persist any changed custom GWPs before broadcasting them, ensuring the latest values are always used.

@rmroot rmroot merged commit 303a555 into develop Jan 22, 2026
3 checks passed
@rmroot rmroot deleted the issue-2190-AR6 branch January 23, 2026 18:19
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.

1 participant