-
Notifications
You must be signed in to change notification settings - Fork 24
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
fixed bug where power curve losses was shifting power curve to the le… #424
Conversation
…ft to acheive losses
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #424 +/- ##
==========================================
+ Coverage 86.98% 87.03% +0.04%
==========================================
Files 122 122
Lines 16950 16990 +40
==========================================
+ Hits 14744 14787 +43
+ Misses 2206 2203 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to poke holes in this but it seems to cover all the cases I could think of so good job! Maybe real data out there will reveal something I overlooked but we can cross that bridge when we get there
new_power_curve = transformation.apply(strength) | ||
mask = new_power_curve.wind_speed >= real_power_curve.wind_speed[-10] | ||
assert (new_power_curve[mask] == 0).all() | ||
|
||
|
||
@pytest.mark.parametrize('TransClass', TRANSFORMATIONS.values()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a CLEAN test. And tests any future transformations too. Love it.
Just finished CONUS onshore+offshore runs for both Sup3rCC datasets with 0 errors or warnings, i'm encouraged! going to merge. |
fixed bug where power curve losses was shifting power curve to the le…
…ft to acheive losses