Skip to content

Commit

Permalink
Bugfix: Fix admin needs for Windows
Browse files Browse the repository at this point in the history
Minor changes:
- fix the admin needs for Windows by setting the shadow directory settings in the Snakefile to "copy-minimal" for Windows
  • Loading branch information
Eric-Nitschke committed Jan 14, 2025
1 parent 3723590 commit d4c6c1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ if config["monte_carlo"]["options"].get("add_to_snakefile", False) == True:
resources:
mem_mb=memory,
shadow:
"shallow"
"copy-minimal" if os.name == "nt" else "shallow"
script:
"scripts/solve_network.py"

Expand Down Expand Up @@ -1626,7 +1626,7 @@ if config["foresight"] == "overnight":
RESDIR
+ "postnetworks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_{sopts}_{planning_horizons}_{discountrate}_{demand}_{h2export}export.nc",
shadow:
"shallow"
"copy-minimal" if os.name == "nt" else "shallow"
log:
solver=RESDIR
+ "logs/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_{sopts}_{planning_horizons}_{discountrate}_{demand}_{h2export}export_solver.log",
Expand Down Expand Up @@ -2092,7 +2092,7 @@ if config["foresight"] == "myopic":
# config=RESDIR
# + "configs/config.elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_{sopts}_{planning_horizons}_{discountrate}_{demand}_{h2export}export.yaml",
shadow:
"shallow"
"copy-minimal" if os.name == "nt" else "shallow"
log:
solver=RESDIR
+ "logs/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_{sopts}_{planning_horizons}_{discountrate}_{demand}_{h2export}export_solver.log",
Expand Down

0 comments on commit d4c6c1f

Please sign in to comment.