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 dd14f86 commit 21b5731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def add_links_elec_routing_new_H2_pipelines():
h2_links = h2_links.groupby("buses_idx").agg(
{"bus0": "first", "bus1": "first", "length": "mean", "capacity": "sum"}
)

if len(h2_links) > 0:
if snakemake.config["sector"]["hydrogen"]["gas_network_repurposing"]:
add_links_elec_routing_new_H2_pipelines()
Expand Down

0 comments on commit 21b5731

Please sign in to comment.