Skip to content

Modify index to year 1 index to correctly utilize tou demand function#1152

Merged
brtietz merged 1 commit into
patchfrom
ssc_1151_fix_multi_year_demand_setup
Mar 21, 2024
Merged

Modify index to year 1 index to correctly utilize tou demand function#1152
brtietz merged 1 commit into
patchfrom
ssc_1151_fix_multi_year_demand_setup

Conversation

@brtietz

@brtietz brtietz commented Mar 20, 2024

Copy link
Copy Markdown
Collaborator

The TOU demand function changed in https://github.com/NREL/ssc/pull/1135/files expects the year 1 index. Correct this, and add a test that reproduces the issue by setting up a multi-year rate forecast object.

@brtietz brtietz added this to the 2023 Release Patch 2 milestone Mar 20, 2024
@brtietz brtietz requested review from cpaulgilman and dguittet March 20, 2024 19:43
@brtietz brtietz self-assigned this Mar 20, 2024

@cpaulgilman cpaulgilman 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 in the UI. I ran a simulation for the default PV Battery / Commercial case and all battery dispatch options and got no simulation errors. Retail rates did not display the error about demand TOU periods.

@cpaulgilman

Copy link
Copy Markdown
Collaborator

Issue reported in SAM forum: https://sam.nrel.gov/forum/forum-general/4659

@brtietz brtietz deleted the ssc_1151_fix_multi_year_demand_setup branch December 13, 2024 19:21
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.

3 participants