Skip to content

FOM Battery Remove Sell Rate#603

Merged
cpaulgilman merged 7 commits into
patchfrom
SAM570-battery-fom-remove-sell-rate
May 5, 2021
Merged

FOM Battery Remove Sell Rate#603
cpaulgilman merged 7 commits into
patchfrom
SAM570-battery-fom-remove-sell-rate

Conversation

@cpaulgilman

Copy link
Copy Markdown
Collaborator
  • For Battery FOM, change label for Electricity Rates page to Electricity Purchases and revise descriptions in UI labels. Add new Help page and revise descriptions.

  • Correct conditional display of electricity rates inputs: No sell rates, enforce buy all / sell all metering option.

  • Fix typo in Group Name for battery dispatch charge limits.

  • UI callback function to display a message and set sell rate to zero if user opens a file created with SAM 2020.11.29 r1 with non-zero sell rates or if LK script sets sell rate to non-zero value.

  • Modify version upgrade script to handle opening old FOM battery cases where sell rate is non-zero. To test, try opening these files created with SAM 2020.2.29 or older that incorrectly allowed TOU sell rates:
    fom-battery-sell-rate-tests.zip

* For Battery FOM, change label for Electricity Rates page to Electricity Purchases and revise descriptions in UI labels.

* Correct conditional display of electricity rates inputs: No sell rates, enforce buy all / sell all metering option.

* Fix typo in Group Name for battery dispatch charge limits.

* UI callback function to display a message and set sell rate to zero if user opens an old file with non-zero sell rates or LK script sets sell rate to non-zero value.

* Modify version upgrade script to handle opening old FOM battery cases where sell rate is non-zero
@cpaulgilman cpaulgilman added this to the 2020.11.29 Patch 2 milestone May 1, 2021
@cpaulgilman cpaulgilman requested a review from brtietz May 1, 2021 22:34
@brtietz

brtietz commented May 3, 2021

Copy link
Copy Markdown
Collaborator

This is great! I particularly like that this page now makes it clear that PPA is the alternative to the retail rate. Three testing notes/suggestions:

(1) Change the default for "compensation rate for net excess generation" to $0:

image

I feel like having a non-zero number in a greyed out box is confusing.

(2) The Fuel Cell page still allows the full suite of distributed generation options for Single Owner, these should line up with other FOM configurations:

image

(3) These constraints are not enforced with the "save / load rate from file" dialog. I can force a change to net billing using this file:
test_load_net_billing.zip Is this something we want to allow?

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

See previous comment for requested changes (probably should have just written them up here).

* Change default value of ur_nm_yearend_sell_rate for all configurations.

* Fix Fuel Cell / Single Owner configuration: Use FOM version of electricity rates page and set default for en_electricity_rates to zero.

* Change startup script function name from setup_utility_rate_optional() to setup_electricity_purchases() for clarity.

* Fix Help stylesheet formatting for notes from underline to bold.
Changing default value of net excess generation compensation rate to zero may result in small changes in LCOE.
@cpaulgilman

Copy link
Copy Markdown
Collaborator Author

@brtietz Thanks for the feedback. I made changes to address the two issues you noted. I also ran the test script again in case changing the default excess compensation rate to zero affected results. The default rate was non-zero for several configurations, including ones like Physical Trough Commercial, and I set them all to zero.

@brtietz

brtietz commented May 3, 2021

Copy link
Copy Markdown
Collaborator

The fixes for (1) and (3) look great!

For (2) it looks like the default for ur_metering_option for fuel cell single owner needs to change, now it's stuck on net metering:

image

For rate data CSV files with maximum usage units value of -1, reset to zero (kWh) and display UI message box. This may happen when a user used an older version of SAM to import a rate from the URDB with no value for the max usage field and then exported it to a CSV file.

Revise messages in message boxes.
@cpaulgilman

Copy link
Copy Markdown
Collaborator Author

My latest commit 7fab175 fixes an issue when importing a rate data CSV with energy charge max usage units value of -1, which can happen when importing a CSV file containing data for a rate from the URDB where max usage units is set to -1.

It also modifies the URDB download process to change usage units = -1 to zero to avoid this issue to begin with.

@cpaulgilman cpaulgilman requested a review from brtietz May 4, 2021 18:27

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

Recent changes look great, thanks!

@cpaulgilman cpaulgilman merged commit 8cefaa3 into patch May 5, 2021
@cpaulgilman cpaulgilman deleted the SAM570-battery-fom-remove-sell-rate branch May 5, 2021 17:57
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