Skip to content

UI Message for Battery Grid Charging with PBI#1792

Merged
cpaulgilman merged 1 commit into
patchfrom
pbi-message-for-grid-charging
Jun 17, 2024
Merged

UI Message for Battery Grid Charging with PBI#1792
cpaulgilman merged 1 commit into
patchfrom
pbi-message-for-grid-charging

Conversation

@cpaulgilman

Copy link
Copy Markdown
Collaborator

Modify existing UI callback function that displays message when grid charging is enabled with PTC to also display message with PBI.

Also trigger message on_change so message appears when you switch to Battery Dispatch pages.

Pull Request Template

Description

Fixes #1759

Type of change

Please delete options that are not relevant.

  • 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
  • This change modifies variables in existing compute modules. Please see Checking for PySAM Incompatible API Changes.

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.

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • 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

Also trigger message on_change so message appears when you switch to Battery Dispatch pages.
@cpaulgilman cpaulgilman added the UI User interface issue that applies across performance and financial models label Jun 13, 2024
@cpaulgilman cpaulgilman added this to the 2023 Release Patch 2 milestone Jun 13, 2024
@cpaulgilman cpaulgilman requested a review from brtietz June 13, 2024 22:26
@cpaulgilman cpaulgilman self-assigned this Jun 13, 2024

@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 code looks good, thank you!

I'm not worried about the failing test on Mac, since this UI code wouldn't affect that model.

There's a minor consistency issue in the defaults: the default PBI term for front of meter is 10 years, whereas for BTM it's 0 years. That should be a separate issue if we choose to address it and can probably wait until the release.

@cpaulgilman

Copy link
Copy Markdown
Collaborator Author

There's a minor consistency issue in the defaults: the default PBI term for front of meter is 10 years, whereas for BTM it's 0 years. That should be a separate issue if we choose to address it and can probably wait until the release.

I think the default term should be zero if the default amount is zero to force the user to set both the PBI amount and term -- otherwise they may just set the PBI amount and not notice the term.

@cpaulgilman cpaulgilman merged commit dfbb896 into patch Jun 17, 2024
dguittet added a commit that referenced this pull request Jun 25, 2024
* Update lhs.bin and stepwise.bin to address #1417

* Not sure why GitHub Actions failing when Mac binaries only thing updated

* Fix base branch for GitHub Actions - patch

* Rerun defaults on Windows for failing GitHub Actions

* Fix indifference point macro description (#1788)

* Update PV PDF report templates (#1789)

* Fix Federal depreciation calculation in host_developer.xlsx (#1793)

Cell CashFlow!B398 incorrectly referred to $C$141 for federal custom depreciation allocation which caused divide by zero errors that propagated through workbook all the way to LCOE and NPV results.

This issue only affected Host Developer send-to-Excel with equations when 20-yr SL allocation (Inputs!C141) is set to zero.

Checked that all other FOM spreadsheets do not have this problem.

* UI message for battery grid charging with PBI (#1792)

Also trigger message on_change so message appears when you switch to Battery Dispatch pages.

* Marine Energy documentation revisions (#1790)

* Fix base branch in Github CI (#1779)

* fix base branch

* fix ref name

* set default branch to patch

* update test results

---------

Co-authored-by: sjanzou <sjanzou@gmail.com>
Co-authored-by: Steven Janzou <steven@janzouconsulting.com>
Co-authored-by: Paul Gilman <cpaulgilman@gmail.com>
dguittet added a commit that referenced this pull request Jun 25, 2024
* Update lhs.bin and stepwise.bin to address #1417

* Not sure why GitHub Actions failing when Mac binaries only thing updated

* Fix base branch for GitHub Actions - patch

* Rerun defaults on Windows for failing GitHub Actions

* Fix indifference point macro description (#1788)

* Update PV PDF report templates (#1789)

* Update PV Tracking and Orientation diagram

Old version was misleading for one-axis trackers.

Delete extra copies of image file.

* Update documentation for PV tracking and orientation

* Revise PVWatts tilt and azimuth descriptions

* Fix Federal depreciation calculation in host_developer.xlsx (#1793)

Cell CashFlow!B398 incorrectly referred to $C$141 for federal custom depreciation allocation which caused divide by zero errors that propagated through workbook all the way to LCOE and NPV results.

This issue only affected Host Developer send-to-Excel with equations when 20-yr SL allocation (Inputs!C141) is set to zero.

Checked that all other FOM spreadsheets do not have this problem.

* UI message for battery grid charging with PBI (#1792)

Also trigger message on_change so message appears when you switch to Battery Dispatch pages.

* Marine Energy documentation revisions (#1790)

* Fix base branch in Github CI (#1779)

* fix base branch

* fix ref name

* set default branch to patch

* Address hybrid SAM lk scripting issues in #1636

* Squashed commit of the following:

commit c5f39d5
Author: Paul Gilman <cpaulgilman@gmail.com>
Date:   Fri Jun 14 16:13:53 2024 -0700

    Fix CEC Help topic

commit d44d433
Author: Paul Gilman <cpaulgilman@gmail.com>
Date:   Fri Jun 14 16:00:05 2024 -0700

    Help revisions for PV temperature, spectral, and optical models

    * Revise IEC 61853 topic to explain temperature, spectral, and optical models.

    * Add note for CEC model to explain air mass model.

commit 05581df
Author: Paul Gilman <cpaulgilman@gmail.com>
Date:   Fri Jun 14 15:58:13 2024 -0700

    UI fixes for PV optical and spectral models

    * Display all available data for Sandia module model so users can see model coefficient values in UI without opening library CSV file.

    * Improve labeling of inputs for IEC 61853 module model

* Improve Documentation of IEC 61858 temperature, optical, and spectral models (#1795)

* UI fixes for PV optical and spectral models

* Display all available data for Sandia module model so users can see model coefficient values in UI without opening library CSV file.

* Improve labeling of inputs for IEC 61853 module model

* Help revisions for PV temperature, spectral, and optical models

* Revise IEC 61853 topic to explain temperature, spectral, and optical models.

* Add note for CEC model to explain air mass model.

* Fix CEC Help topic

* Improve lk select_inputs() function description

* revert test_results_win64.csv

---------

Co-authored-by: sjanzou <sjanzou@gmail.com>
Co-authored-by: Steven Janzou <steven@janzouconsulting.com>
Co-authored-by: Paul Gilman <cpaulgilman@gmail.com>
@cpaulgilman cpaulgilman added the added to release notes PR and/or issue has been added to release notes for a public release label Jul 24, 2024
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 UI User interface issue that applies across performance and financial models

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incentives page should provide warning about PBI and grid charging

2 participants