-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Return forecast as % #125
Comments
Hi @peterdudfield Sir, I tried to attempt this issue but after running this " poetry run uvicorn pv_site_api.main:app --reload" but it shows API under construction. Not able to run pytest |
|
Yes @peterdudfield sir, by running pytest separately test passes ( by keeping the pv_site_api in root directory of tests) . I have questions:
|
I understand this is a bit tricky |
Hi @peterdudfield sir, this is how the output of the forecast looks like : The forecast value is : [SiteForecastValues(target_datetime_utc=datetime.datetime(2024, 3, 23, 10, 54, 53, 391262), expected_generation_kw=0.0), SiteForecastValues(target_datetime_utc=datetime.datetime(2024, 3, 23, 11, 4, 53, 391262), expected_generation_kw=0.0), SiteForecastValues(target_datetime_utc=datetime.datetime(2024, 3, 23, 11, 14, 53, 391262), expected_generation_kw=0.0), SiteForecastValues(target_datetime_utc=datetime.datetime(2024, 3, 23, 11, 24, 53, 391262), expected_generation_kw=0.0), how it should look like if returned as percentage. And also while running pytest terminal is getting filed with warnings of DeprecationWarning do we need to update it ? |
Warnings would be good to get rid of I'm surprised all those results are zero? |
yes because I am not able to run this command: 2024-03-24 10:31:57 2024-03-24 05:01:57.365 UTC [1] LOG: database system is ready to accept connections and when I am manually running it using pytest only in the test folder then all tests pass except
because it can't connect to the database, is there something that I am doing wrong while running?
|
@peterdudfield Sir removed 3 warnings please check. #152 |
@peterdudfield sir corrected format and new PR #153 please check. |
sir, how should I proceed with the return forecast as % issue? as all values are zero . |
pytest will run independently of the database, so you should be able to run them still |
Return forecast as % of the site capacity
Context
Possible Implementation
add bool option to
normalize
data by site capacity. Default should be false. This could be donehereThis can be done with python loops, but I wonder if there is a way to do this more efficiently
The text was updated successfully, but these errors were encountered: