Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/features/#405-insert-ch4-storage…
Browse files Browse the repository at this point in the history
…s' into features/#474-insert-hydrogen-infrastructure
  • Loading branch information
fwitte committed Oct 19, 2021
2 parents 063a9bd + a4de0a4 commit 5a15a7e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/egon/data/datasets/gas_grid.py
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

0 comments on commit 5a15a7e

Please sign in to comment.