Skip to content

Commit

Permalink
Bugfix Snakefile for non-Windows operating systems
Browse files Browse the repository at this point in the history
Minor changes:
- fix the input files for solve_network in the Snakefile for non-Windows operating systems.
- revert the addition of "H2 Pipeline" to config.default.yaml and move it to the test/config.sector.yaml instead.
Eric-Nitschke committed Jan 13, 2025
1 parent ca1db0a commit 7c87a48
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Snakefile
Original file line number Diff line number Diff line change
@@ -822,7 +822,7 @@ if config["monte_carlo"]["options"].get("add_to_snakefile", False) == False:
overrides=(
os.getcwd() + "/data/override_component_attrs"
if os.name == "nt"
else "/data/override_component_attrs"
else "data/override_component_attrs"
),
# on Windows os.getcwd() is required because of the "copy-minimal" shadow directory
network="networks/" + RDIR + "elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
2 changes: 1 addition & 1 deletion config.default.yaml
Original file line number Diff line number Diff line change
@@ -171,7 +171,7 @@ electricity:
Generator: [solar, onwind, offwind-ac, offwind-dc, OCGT]
StorageUnit: [] # battery, H2
Store: [battery, H2]
Link: [H2 pipeline] # H2 pipeline
Link: [] # H2 pipeline

powerplants_filter: (DateOut >= 2022 or DateOut != DateOut)
custom_powerplants: false # "false" use only powerplantmatching (ppm) data, "merge" combines ppm and custom powerplants, "replace" use only custom powerplants
2 changes: 1 addition & 1 deletion test/config.sector.yaml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ countries: ["NG", "BJ"]
electricity:
extendable_carriers:
Store: []
Link: []
Link: [H2 pipeline]

co2limit: 7.75e7

0 comments on commit 7c87a48

Please sign in to comment.