Skip to content

Added divide by zero check for BTM battery grid charging cost#679

Merged
mjprilliman merged 2 commits into
developfrom
lcos_btm_gridcharge_fix
Nov 30, 2021
Merged

Added divide by zero check for BTM battery grid charging cost#679
mjprilliman merged 2 commits into
developfrom
lcos_btm_gridcharge_fix

Conversation

@mjprilliman

Copy link
Copy Markdown
Collaborator

-Avoid error in LCOS BTM calculations by checking for 0 monthly grid charge before performing parasitic cost calculations
-Fixes NatLabRockies/SAM#801

@mjprilliman mjprilliman added this to the SAM Fall 2021 Release milestone Nov 30, 2021
@mjprilliman mjprilliman requested a review from dguittet November 30, 2021 18:04
@mjprilliman mjprilliman self-assigned this Nov 30, 2021
@mjprilliman mjprilliman requested a review from brtietz November 30, 2021 18:10

@brtietz brtietz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks great! I agree that it makes sense that the value of true up payments should be zero if there is no net energy drawn from the grid.

@mjprilliman mjprilliman merged commit 8226b03 into develop Nov 30, 2021
@mjprilliman mjprilliman deleted the lcos_btm_gridcharge_fix branch November 30, 2021 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fuel Cell / Commercial Configuration UI and Defaults Issues

3 participants