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

Features/#405 insert ch4 storages #472

Merged
merged 12 commits into from
Nov 12, 2021
8 changes: 3 additions & 5 deletions src/egon/data/datasets/gas_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def ch4_nodes_number_G(gas_nodes_list):
gas_nodes_list["country_code"].str.match("DE")
] # A remplacer evtmt par un test sur le NUTS0 ?
N_ch4_nodes_G = len(ch4_nodes_list)
return N_ch4_nodes_G

return N_ch4_nodes_G


def insert_CH4_nodes_list(gas_nodes_list):
Expand All @@ -139,7 +139,7 @@ def insert_CH4_nodes_list(gas_nodes_list):
gas_nodes_list = gas_nodes_list[
gas_nodes_list["country_code"].str.match("DE")
] # A remplacer evtmt par un test sur le NUTS0 ?

# Cut data to federal state if in testmode
NUTS1 = []
for index, row in gas_nodes_list.iterrows():
Expand Down Expand Up @@ -211,8 +211,6 @@ def insert_CH4_nodes_list(gas_nodes_list):
if_exists="append",
dtype={"geom": Geometry()},
)

return N_ch4_nodes_G


def insert_H2_nodes_list():
Expand Down