Skip to content
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

ERP bug fix: divide by zero BESS #563

Merged
merged 3 commits into from
Feb 5, 2024
Merged

ERP bug fix: divide by zero BESS #563

merged 3 commits into from
Feb 5, 2024

Conversation

hdunham
Copy link
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
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
2 checks passed
@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.

None yet

2 participants