Skip to content

Commit

Permalink
Bugfix: Fix admin needs for Windows (#1295)
Browse files Browse the repository at this point in the history
* Bugfix: Fix admin needs for Windows

Minor changes:
- fix the admin needs for Windows by setting the shadow directory settings in the Snakefile to "copy-minimal" for Windows

* Update the release_notes

---------

Co-authored-by: Davide Fioriti <[email protected]>
  • Loading branch information
Eric-Nitschke and davide-f authored Jan 15, 2025
1 parent 44a8966 commit e393855
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,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 @@ -1631,7 +1631,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 @@ -2097,7 +2097,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
2 changes: 2 additions & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ This part of documentation collects descriptive release notes to capture the mai

* Fix lossy bidirectional links, especially H2 pipelines, which would sometimes gain H2 instead of losing it. `PR #1192 <https://github.com/pypsa-meets-earth/pypsa-earth/pull/1192>`__

* Fix the need for administrative rights on Windows by changing all shadow directory settings for Windows in the Snakefile `PR #1295 <https://github.com/pypsa-meets-earth/pypsa-earth/pull/1295>`__

PyPSA-Earth 0.6.0
=================

Expand Down

0 comments on commit e393855

Please sign in to comment.