-
Notifications
You must be signed in to change notification settings - Fork 252
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
Unit test build shapes and minor changes to test_base_network.py #1466
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…/pypsa-eur into unit_test_build_shapes
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.
Thank you again for your work on the unit tests!
I have concerns about how we're going to handle data retrieval here.
I'm not sure if we want to open up another section where we define urls and retrieve them with some extra logic? I think we should keep this out of the unit tests.
The retrieval is not very stable and breaks from time to time. And it is all ready and will be even more tedious to fix it twice. Especially since we have no common input data management (yet). Also this slows down the unit tests quite a bit, isnt't it?
But also not sure how to handle this instead. What do you think?
hey @lkstrp, thanks for your comment :) I can guide you through my reasoning. For the unit testing we need many input files. I do not know exactly which ones are actually needed and what their size will be in the end. This rules out the possibility of storing such inputs (we do not know how much space we need to allocate for that). My focus now is to write as many unit tests as possible in the least time as possible. Hence, I decided to write the fixtures that download just the data that we need as a temporary and light solution. My suggestion would be to go forward with the solution currently at hand (a.k.a. the fixtures) and once we have a better idea of how many inputs we need and what their sizes will be, we can then find better solutions. Thanks :) |
Let's go! Ok, then we fix all potential input data issues once they occur or move the whole logic to some input data management tool at some point |
Closes # (if applicable).
Changes proposed in this Pull Request
The pull request proposes the following unit tests:
test/test_build_shapes.py:
conftest.py:
test/test_base_network.py:
Checklist
envs/environment.yaml
.config/config.default.yaml
.doc/configtables/*.csv
.doc/data_sources.rst
.doc/release_notes.rst
is added.