Skip to content

Commit

Permalink
extend path of reference network by ecc wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
cpschau committed Oct 31, 2024
1 parent 2eacba2 commit c71511e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/solve_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,11 @@ def add_existing(n):
!= "no_res_matching"
):
n_ref_path = snakemake.config["policy_config"]["hydrogen"]["path_to_ref"]
n_ref_path = (
n_ref_path[:-3]
+ f"_{snakemake.wildcards.electrolyzer_cc}"
+ n_ref_path[-3:]
)
n_ref = pypsa.Network(n_ref_path)
else:
n_ref = None
Expand Down

0 comments on commit c71511e

Please sign in to comment.