-
Notifications
You must be signed in to change notification settings - Fork 142
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
Compare Cases macro #1894
Compare Cases macro #1894
Conversation
This is great! Thanks for tackling this! A few quick thoughts:
|
Looks good. A few suggestions: Fix all instances of I tested with a PTES case that does not have Remove Line 974 In table, replace "Technology" with "Performance Model". In report footer, replace "This report was generated using the System Advisor Model testMacro" with "This report was generated using the System Advisor Model Compare Cases macro". Center footer with |
@mjprilliman I'm getting SAM crashes testing now -- is this still in progress? |
I was waiting for tests to pass, but I can look into any issues. Where is the crash happening? |
Sorry, I think the crash was a false alarm. I tried cleaning and rebuilding and things are working now. The fixes for the items I listed above look good. Thanks! A couple of things in the new build:
|
Thanks for finding that, there was a broken if statement for that. Yes, there's a few extra features for the battery macro that I think are worth it. It creates a stacked graph for the annual energy of each case showing the contributions from the system and from the battery discharge. And for two battery cases, there's a waterfall chart that shows the difference in annual energy charged including steps for system and grid charging to compare the two cases. |
Ok, looks good. |
Description
-Add Compare Cases macro to generate html reports with simple metric table and graphical comparisons of up to 4 cases
-cases being compared must all be run prior to running macro, and must be for the same financial model
-Maximum of 4 cases
-Battery version: same metrics with a few extra battery dispatch graphs; available for PV Battery, Standalone Battery, Generic (soon to be Custom Generation) Battery
-Should work for all configs with basic annual energy and financial information; must have a cashflow, macro will exit if looking at LCOE Calculator or None financial cases
-v1 of this feature, potential for updates in the future
Fixes #1877
Type of change
Please delete options that are not relevant.
Checklist:
If you have added a new compute module in a SSC pull request related to this one, be sure to check the Process Requirements.