Skip to content

Changed duration sizing defaults to kwh option, changed variable#606

Merged
mjprilliman merged 2 commits into
patchfrom
batt_duration_sizing_overwrite_fix
May 4, 2021
Merged

Changed duration sizing defaults to kwh option, changed variable#606
mjprilliman merged 2 commits into
patchfrom
batt_duration_sizing_overwrite_fix

Conversation

@mjprilliman

Copy link
Copy Markdown
Collaborator

-Fixes lost value issue when changing between kwh and h battery sizing options
-Implements bidirectional overwrites when switching between options to keep values for each option unless manually changed
-Sets default to kwh option for all battery configurations, as this is the existing method for sizing the battery.

overwrites to be bidirectional to not lose kwh or h values
@mjprilliman mjprilliman added this to the 2020.11.29 Patch 2 milestone May 3, 2021
@mjprilliman mjprilliman requested review from brtietz and cpaulgilman May 3, 2021 19:50
@mjprilliman mjprilliman self-assigned this May 3, 2021

@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.

The functions for switching between kWh and h are working great, but my saved files from 2020.11.29r1 are still having their durations overwritten to a two hr battery. It's just displayed in kWh now.

@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 good as of the latest commit. Thanks!

@sjanzou

sjanzou commented May 4, 2021

Copy link
Copy Markdown
Collaborator

@mjprilliman, pull request looks good

@mjprilliman mjprilliman merged commit e3e08ab into patch May 4, 2021
@mjprilliman mjprilliman deleted the batt_duration_sizing_overwrite_fix branch May 4, 2021 16:48
@mjprilliman mjprilliman linked an issue May 4, 2021 that may be closed by this pull request
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.

New battery UI Form overwrites existing capacity

4 participants