Skip to content

Update Battery Compare Cases macro#2176

Merged
mjprilliman merged 2 commits intodevelopfrom
sam-1973
May 8, 2026
Merged

Update Battery Compare Cases macro#2176
mjprilliman merged 2 commits intodevelopfrom
sam-1973

Conversation

@mjprilliman
Copy link
Copy Markdown
Collaborator

Pull Request Template

Description

-Add roundtrip efficiency in summary table for Battery Compare Cases macro

-To test:
-open attached SAM file
-Simulate both cases
-Go to macros -> Battery Compare Cases, run macro with all cases
-See results

Fixes #1973

batt_macro_test.zip

Checklist

  • requires help revision and I added that label
  • adds, removes, modifies, or deletes variables in existing compute modules
  • adds a new compute module
  • changes defaults
  • [x ] I've tagged this PR to a milestone

@mjprilliman mjprilliman added this to the SAM 2026 Release milestone Apr 13, 2026
@mjprilliman mjprilliman requested a review from cpaulgilman April 13, 2026 16:18
@mjprilliman mjprilliman self-assigned this Apr 13, 2026
Copy link
Copy Markdown
Collaborator

@cpaulgilman cpaulgilman left a comment

Choose a reason for hiding this comment

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

Thanks for adding the roundtrip efficiency to the Battery Compare Cases macro.

One small fix. The footer says:

This report was generated using the System Advisor Model testMacro on:

It should say

This report was generated using the System Advisor Model Battery Compare Cases macro on:

Also, I got thrown off because there's a "Compare Cases" and a "Battery Compare Cases" macro. As a separate issue, I would recommend combining the macros into a single "Compare Cases" macro that can handle battery and non-battery cases.

@mjprilliman
Copy link
Copy Markdown
Collaborator Author

Thanks for adding the roundtrip efficiency to the Battery Compare Cases macro.

One small fix. The footer says:

This report was generated using the System Advisor Model testMacro on:

It should say

This report was generated using the System Advisor Model Battery Compare Cases macro on:

Also, I got thrown off because there's a "Compare Cases" and a "Battery Compare Cases" macro. As a separate issue, I would recommend combining the macros into a single "Compare Cases" macro that can handle battery and non-battery cases.

That is clunky to do right now due to how we prepare the html code to generate the report, but I will mark it as a future issue to address.

@mjprilliman mjprilliman merged commit 520ecfd into develop May 8, 2026
4 of 6 checks passed
@mjprilliman mjprilliman deleted the sam-1973 branch May 8, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add battery efficiency, other metrics to battery compare cases macro

2 participants