Skip to content

Commit

Permalink
Update Snakefile: Remove os.getcwd from this PR. To be solved in Bugf…
Browse files Browse the repository at this point in the history
…ix: Fix admin needs for Windows #1295
  • Loading branch information
Eddy-JV authored Jan 15, 2025
1 parent d84ce66 commit eaba5cf
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -809,12 +809,7 @@ if config["monte_carlo"]["options"].get("add_to_snakefile", False) == False:
solving=config["solving"],
augmented_line_connection=config["augmented_line_connection"],
input:
overrides=(
os.getcwd() + "/data/override_component_attrs"
if os.name == "nt"
else "data/override_component_attrs"
),
# on Windows os.getcwd() is required because of the "copy-minimal" shadow directory
overrides="data/override_component_attrs",
network="networks/" + RDIR + "elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
output:
"results/" + RDIR + "networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
Expand Down Expand Up @@ -881,12 +876,7 @@ if config["monte_carlo"]["options"].get("add_to_snakefile", False) == True:
solving=config["solving"],
augmented_line_connection=config["augmented_line_connection"],
input:
overrides=(
os.getcwd() + "/data/override_component_attrs"
if os.name == "nt"
else "data/override_component_attrs"
),
# on Windows os.getcwd() is required because of the "copy-minimal" shadow directory
overrides="data/override_component_attrs",
network="networks/"
+ RDIR
+ "elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_{unc}.nc",
Expand Down Expand Up @@ -1630,12 +1620,7 @@ if config["foresight"] == "overnight":
solving=config["solving"],
augmented_line_connection=config["augmented_line_connection"],
input:
overrides=(
os.getcwd() + "/data/override_component_attrs"
if os.name == "nt"
else "data/override_component_attrs"
),
# on Windows os.getcwd() is required because of the "copy-minimal" shadow directory
overrides="data/override_component_attrs",
# network=RESDIR
# + "prenetworks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_{sopts}_{planning_horizons}_{discountrate}.nc",
network=RESDIR
Expand Down Expand Up @@ -2101,12 +2086,7 @@ if config["foresight"] == "myopic":
"co2_sequestration_potential", 200
),
input:
overrides=(
os.getcwd() + "/data/override_component_attrs"
if os.name == "nt"
else "data/override_component_attrs"
),
# on Windows os.getcwd() is required because of the "copy-minimal" shadow directory
overrides="data/override_component_attrs",
network=RESDIR
+ "prenetworks-brownfield/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sopts}_{planning_horizons}_{discountrate}_{demand}_{h2export}export.nc",
costs=CDIR + "costs_{planning_horizons}.csv",
Expand Down

0 comments on commit eaba5cf

Please sign in to comment.