Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regional cost bug #477

Merged
merged 4 commits into from
Oct 23, 2024
Merged

Fix regional cost bug #477

merged 4 commits into from
Oct 23, 2024

Conversation

ppinchuk
Copy link
Collaborator

Previously, regional multipliers would be applied twice - once during the generation run and once during the econ run. We need the econ data to be formalized at generation run time though, for output collection purposes. So, in this PR, I added a flag that let's reV know if econ values have already been adjusted. If so, no other adjustments are made.

A test for regional multipliers did exist, but it was only on the econ module. This bug happens when generation and econ are both run so this bug slipped through the cracks. I added a new test that checks the multipliers for a combined generation + econ run

@ppinchuk ppinchuk added bug Something isn't working Urgent High priority issue for NREL deliverables labels Oct 22, 2024
@ppinchuk ppinchuk self-assigned this Oct 22, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.59%. Comparing base (df1eee5) to head (ef1088e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #477      +/-   ##
==========================================
+ Coverage   87.52%   87.59%   +0.06%     
==========================================
  Files         122      122              
  Lines       18183    18228      +45     
==========================================
+ Hits        15915    15967      +52     
+ Misses       2268     2261       -7     
Flag Coverage Δ
unittests 87.59% <100.00%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ppinchuk
Copy link
Collaborator Author

reVX test fails because of pandas 2.0. Moving forward with this for now

@ppinchuk ppinchuk merged commit d41d454 into main Oct 23, 2024
10 of 11 checks passed
@ppinchuk ppinchuk deleted the pp/fix_regional_cost_bug branch October 23, 2024 01:52
github-actions bot pushed a commit that referenced this pull request Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Urgent High priority issue for NREL deliverables
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants