-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Issue/adjuster #115
Issue/adjuster #115
Conversation
for i in range(0, len(start_times)): | ||
forecast_value = ForecastValueSQL( | ||
horizon_minutes=i * 15, | ||
forecast_power_kw=random.random() * 10000, |
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.
Would it be easier to test/ have stronger tests if these weren't random values? Thinking then some of the != asserts in tests below could be stronger = asserts?
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.
your right, they would be better. Trying to work out if to do it in this PR, or put it as a good first issue. The generation values are currently random too, so would need to change them too
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.
forecast_values_df_adjust["me_kw"].fillna(0, inplace=True) | ||
|
||
# adjust forecast_power_kw by ME values | ||
forecast_values_df_adjust["forecast_power_kw"] = ( |
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.
This is currently applied to all forecast horizons, is that okay or do we want to add some logic to restrict this to be applied to just day ahead horizons?
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.
Yea, currently not. I was thinking, perhaps to deploy it and see the behaviour on this.
You would hope our ME on the smaller forecast horizons is smaller due to live data, satellite e.t.c, (which i saw breifly when looking at me), so this extra bit of logic might not be necessary.
Pull Request
Description
Wind results currently do look slightly weird though
#116
How Has This Been Tested?
CI tests
ran app locally, and results looks reasonable
add units tests
Yes
Checklist: