Calculate wind_offshore curtailment#115
Conversation
b2c967c to
04e15ba
Compare
|
|
||
| def calculate_curtailment_time_series(scenario, resources=('solar', 'wind')): | ||
| def calculate_curtailment_time_series( | ||
| scenario, resources=('solar', 'wind', 'wind_offshore')): |
There was a problem hiding this comment.
PEP8 issue: the above line should be further indented
There was a problem hiding this comment.
Modified to avoid this issue.
|
l. 108 in curtailment.py: should it be scenario-long instead of year-long in the docstring or something in that vein? l. 55 and l. 174 in test_curtailment.py: ther should be 2 blank lines (PEP8) |
|
In the following test: don't we want the three |
|
Sorry. Just realize now that I am not the reviewer. Stop here. |
Comments addressed anyway 👍 |
You are welcome and feel free to keep going :) |
d17fea5 to
c0c5485
Compare
BainanXia
left a comment
There was a problem hiding this comment.
All tests passed. Minimum changes to the existing code to support offshore wind curtailment calculations are made. This will be useful when we refactor the curtailment plot the AnalyzePG.
c0c5485 to
f34573f
Compare
Purpose
Enable calculation of curtailment time series for
'wind_offshore'plants.What is the code doing
In
curtailment.py:'wind_offshore'profiles are obtained by callingget_wind().calculate_curtailment_time_series()so that is callsget_wind()and/orget_solar()as necessary, and filters columns based on type ingrid.plantso that if we are looking for justwind, or justwind_offshore, we don't get the other plants' profiles.In
test_curtailment.py: we modify tests so that they adequately test combinations ofwind,solar, andwind_offshore.Time to review
15 minutes. Besides columns selection in
calculate_curtailment_time_series(), there's not much else going on.