-
Notifications
You must be signed in to change notification settings - Fork 210
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
Revise TODOs in add_electricity: enable offshore wind and revise hydro #830
Conversation
@hazemakhalek this PR partially handles some issues on hydro: calculate max_hours by country stats. It doesn't fix the problem of placing the same time series on units of the same hydro power plant @energyLS this PR should handle the offshore wind ac and dc |
@davide-f amazing work! That is great that you have returned back off-wind :) Have added some little comments. I also wonder if it'd be possible to use a configuration parameter for the default hydro_max_hours instead of pypsa-earth/scripts/add_electricity.py Lines 580 to 582 in a1583bc
Actually, we have |
scripts/add_electricity.py
Outdated
@@ -568,6 +584,8 @@ def attach_hydro(n, costs, ppl): | |||
hydro_stats["E_store[TWh]"] * 1e3 / hydro_stats["p_nom_discharge[GW]"] | |||
) | |||
|
|||
max_hours_country.clip(0, inplace=True) |
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.
Could it make sense to specify here lower
argument explicitly, as it's done above:
pypsa-earth/scripts/add_electricity.py
Line 556 in a1583bc
e_target = hydro_stats["E_store[TWh]"].clip(lower=0.2) * 1e6 |
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.
Good idea!
Hello :) |
Hello @davide-f :) Added a little additional suggestion. Otherwise looks perfect, I think :) Great work! |
Added a comment, I think we could go as is, I'd merge, if you disagree, feel free to revise at next occasion :D |
Closes #713
Changes proposed in this Pull Request
This PR aims at:
This also partially cover #760
Checklist
envs/environment.yaml
anddoc/requirements.txt
.config.default.yaml
andconfig.tutorial.yaml
.test/
(note tests are changing the config.tutorial.yaml)doc/configtables/*.csv
and line references are adjusted indoc/configuration.rst
anddoc/tutorial.rst
.doc/release_notes.rst
is amended in the format of previous release notes, including reference to the requested PR.