Skip to content

ERP bug fix: divide by zero BESS#563

Merged
hdunham merged 3 commits intodevelopfrom
erp-zero-bess
Feb 5, 2024
Merged

ERP bug fix: divide by zero BESS#563
hdunham merged 3 commits intodevelopfrom
erp-zero-bess

Conversation

@hdunham
Copy link
Copy Markdown
Collaborator

@hdunham hdunham commented Feb 5, 2024

Please check if the PR fulfills these requirements

  • CHANGELOG.md is updated
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Divide by zero error when POSTing to the /erp endpoint with a battery_size_kw of 0

What is the new behavior (if this is a feature change)?

When battery_size_kw is 0, the num_battery_bins default is 1

Does this PR introduce a breaking change?

No

Other information:

@hdunham hdunham requested a review from adfarth February 5, 2024 06:22
Copy link
Copy Markdown
Collaborator

@adfarth adfarth left a comment

Choose a reason for hiding this comment

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

Looks good--thank you for fixing this!

@hdunham hdunham merged commit dd12c8a into develop Feb 5, 2024
@hdunham hdunham deleted the erp-zero-bess branch February 5, 2024 17:22
@adfarth adfarth mentioned this pull request Feb 5, 2024
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.

2 participants