Skip to content

Fix REopt API call functions in UI#999

Merged
cpaulgilman merged 4 commits into
patchfrom
reopt_ui_fixes
Apr 12, 2022
Merged

Fix REopt API call functions in UI#999
cpaulgilman merged 4 commits into
patchfrom
reopt_ui_fixes

Conversation

@cpaulgilman

Copy link
Copy Markdown
Collaborator

Description

Update UI battery sizing variables to support kWh or h option for battery duration implemented in #586.

Fix logic in UI callback so REopt API call results are correctly applied based on user responses to prompts.

Fix "REopt" capitalization in UI text and REopt widgets.

Test for PV Battery, Fuel Cell, and PVWatts Battery configurations.

Goes with SAM-private PR.

Fixes #974

Type of change

  • [x ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

If you have added a new compute module in a SSC pull request related to this one, be sure to check the Process Requirements.

  • [x ] My code follows the style guidelines of this project
  • [x ] I have performed a self-review of my own code
  • [x ] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • [x ] My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

 * Clean up message text
* Update inputs to reflect recent battery dispatch UI changes

* Revise UI message text for clarity

* Add progress bar
Fix capitalization of "REopt" in UI text and REopt widget.

Fix logic in callback so battery size and dispatch inputs are correctly replaced with values for REopt or reset to original values based on user responses to prompts.
@cpaulgilman cpaulgilman requested a review from sjanzou April 1, 2022 21:24
@cpaulgilman cpaulgilman self-assigned this Apr 1, 2022
@cpaulgilman cpaulgilman added this to the 2021.12.02 Patch 2 milestone Apr 1, 2022

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

Everything seems to work fine, one question about the PV-Battery/Residential defaults using ReOpt - sizing comes back with 0kW battery size. Should we changed the defaults?
image

@cpaulgilman

Copy link
Copy Markdown
Collaborator Author

@sjanzou I'll check with the team and see if we can come up with a default PV Battery / Residential case that is more cost-effective than PV-only. Note that the NPV for the default case is higher with no storage than with storage because of the cost of the battery, even with the exaggerated fictional rate structure I came up with to get a positive NPV.

@cpaulgilman cpaulgilman merged commit 6c15ba9 into patch Apr 12, 2022
@cpaulgilman cpaulgilman deleted the reopt_ui_fixes branch April 12, 2022 15:34
@cpaulgilman cpaulgilman added the added to release notes PR and/or issue has been added to release notes for a public release label Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

added to release notes PR and/or issue has been added to release notes for a public release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

REopt "Get size and dispatch" does not set battery dispatch option correctly

2 participants