-
Notifications
You must be signed in to change notification settings - Fork 106
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
Update windpowerlib to work for newer python versions and add automatic testing #136
Conversation
Duplicated wind speed entries lead to errors
I couldn't reproduce the full load hours previously set (1956.164053) even with older versions of python (checked down to 3.8) and pandas (checked down to 1.3.5), so I assume, that the value was incorrect. It was possibly not checked, as the example tests are not in the tests directory but the example directory.
…k is run using pytest_notebook
…d on the other np.int64
…64 and on linux np.int32
…are run on github
…ors" This reverts commit 07649a9.
…o 13] Permission denied
windpowerlib/data.py
Outdated
if len(broken_turbine_data) < 0.2 * len(turbine_data): | ||
logging.warning( | ||
f"The turbine library data contains faulty {curve_type}s. The " | ||
f"{curve_type} data can therefore not be loaded for the following " |
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 am not sure, but I think that one broken data set can make the whole file unusable. Maybe we should add a hint that in that case it is possible to use the function restore_default_turbine_data()
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.
Actually I added these checks so that one broken data set could not make the newly downloaded data unusable, as happened in the last weeks due to bugs in the oedb turbine library data. I moved the checks to a separate function now to be able to test it independent of the oedb data and added tests to show that it is working correctly.
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.
Just one comment. Everythoing else looks fine. Thanky you very much @birgits 😄
…to allow testing independent from oedb data
This PR does the following: