Skip to content
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

Drop coal and lignite power plants in Germany for 2045 #351

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/egon/data/datasets/pypsaeur/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PreparePypsaEur(Dataset):
def __init__(self, dependencies):
super().__init__(
name="PreparePypsaEur",
version="0.0.33",
version="0.0.34",
dependencies=dependencies,
tasks=(
download,
Expand Down Expand Up @@ -1737,6 +1737,19 @@ def drop_fossil_gas(network):
return network


def drop_conventional_power_plants(network):

# Drop lignite and coal power plants in Germany
network.mremove(
"Link",
network.links[
(network.links.carrier.isin(
["coal", "lignite"]))
& (network.links.bus1.str.startswith("DE"))].index,
)

return network

def rual_heat_technologies(network):
network.mremove(
"Link",
Expand Down Expand Up @@ -1805,6 +1818,7 @@ def execute():
h2_overground_stores,
drop_new_gas_pipelines,
drop_fossil_gas,
drop_conventional_power_plants,
# rual_heat_technologies, #To be defined
]

Expand Down
Loading