Skip to content

Commit

Permalink
Update prepare_sector_network.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hazemakhalek authored Apr 26, 2024
1 parent 21b5731 commit 3d9d7ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,15 +436,13 @@ def add_links_elec_routing_new_H2_pipelines():
if len(h2_links) > 0:
if snakemake.config["sector"]["hydrogen"]["gas_network_repurposing"]:
add_links_elec_routing_new_H2_pipelines()
if snakemake.config["sector"]["hydrogen"]["network_routes"]
== "greenfield":
if snakemake.config["sector"]["hydrogen"]["network_routes"] == "greenfield":
add_links_elec_routing_new_H2_pipelines()
else:
add_links_new_H2_pipelines()
else:
print("No existing gas network; applying greenfield for H2 network") #TODO change to logger.info
add_links_elec_routing_new_H2_pipelines()


def define_spatial(nodes):
"""
Expand Down

0 comments on commit 3d9d7ea

Please sign in to comment.