-
Notifications
You must be signed in to change notification settings - Fork 254
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
Add Linopy to PyPSA-Eur #448
Conversation
One observed issue is that PyPSA renames generators that are extendable to What can be investigated:
Update:
|
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
FYI @FabianHofmann, I made all PyPSA-Eur functions run for a single country ["BE"]. I noted that the CCL constraint is a bit more tricky. Because there is a groupby with multi-index, which pypsa-eur/scripts/solve_network.py Lines 167 to 178 in a22dc92
My code 100% breaks if it is applied to multiple countries e.g. ["BE", "DE"] for the |
Only CCL constraint breaks now for multiple countries. If the 'groupsum()' for the multiindex would work this could be solved with ease. As alternative,
|
Thanks to @FabianHofmann for the little co-hacking session for the CCL constraint. Everything is now fixed and tested. As of now, Fabian H. will eventually review this PR in the next 1-2 weeks. Open review questions:
|
Closing because of reimplementation in #625 |
Thanks, @pz-max! @FabianHofmann used your branch as a starting point (preserving commits) and said your contribution made it easy to implement the switch to linopy! |
Yep @fneum, I was with Igor and FabianH when we moved the Linopy stuff to the merge branch :) |
Changes proposed in this Pull Request
Provide new solve_networks option
linopy=True
, which uses Linopy as a backend. Many constraints had to be rewritten due to thexarray
concept in Linopy. All constraints are tested against the previous implementation.Test status per constraint for single country ["BE"] :
and with the following data in
agg_p_nom_minmax.csv
Test status per constraint for single country ["BE", "DE"] :
Checklist
doc/release_notes.rst
is amended in the format of previous release notes.