Skip to content

Commit

Permalink
update extendable link carrier in foreign countries
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfmueller authored Jan 17, 2025
1 parent 26f93d1 commit 568882f
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/egon/data/datasets/pypsaeur/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,11 +1065,20 @@ def links_to_etrago(neighbor_links, scn="eGon100RE", extendable=True):
index_label="link_id",
)

non_extendable_links_carriers = [
"H2 pipeline retrofitted",
"H2 pipeline",
"gas pipeline",
"biogas to gas",
extendable_links_carriers = [
"battery charger",
"battery discharger",
"home battery charger",
"home battery discharger",
"rural water tanks charger",
"rural water tanks discharger",
"urban central water tanks charger",
"urban central water tanks discharger",
"urban decentral water tanks charger",
"urban decentral water tanks discharger",
"H2 Electrolysis",
"H2 Fuel Cell",

]

# delete unwanted carriers for eTraGo
Expand All @@ -1084,13 +1093,13 @@ def links_to_etrago(neighbor_links, scn="eGon100RE", extendable=True):

links_to_etrago(
neighbor_links[
~neighbor_links.carrier.isin(non_extendable_links_carriers)
neighbor_links.carrier.isin(extendable_links_carriers)
],
"eGon100RE",
)
links_to_etrago(
neighbor_links[
neighbor_links.carrier.isin(non_extendable_links_carriers)
~neighbor_links.carrier.isin(extendable_links_carriers)
],
"eGon100RE",
extendable=False,
Expand Down

0 comments on commit 568882f

Please sign in to comment.