Skip to content

Commit

Permalink
Snakefile: export conda environment
Browse files Browse the repository at this point in the history
  • Loading branch information
fneum committed Nov 24, 2021
1 parent 7760c30 commit 6372427
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,14 @@ rule copy_config:
script: "scripts/copy_config.py"


rule copy_conda_env:
output: SDIR + '/configs/environment.yaml'
threads: 1
resources: mem_mb=500
benchmark: SDIR + "/benchmarks/copy_conda_env"
shell: "conda env export -f {output} --no-builds"


rule make_summary:
input:
overrides="data/override_component_attrs",
Expand Down Expand Up @@ -468,6 +476,7 @@ if config["foresight"] == "overnight":
network=RDIR + "/prenetworks/elec_s{simpl}_{clusters}_lv{lv}_{opts}_{sector_opts}_{planning_horizons}.nc",
costs=CDIR + "costs_{planning_horizons}.csv",
config=SDIR + '/configs/config.yaml'
env=SDIR + '/configs/environment.yaml'
output: RDIR + "/postnetworks/elec_s{simpl}_{clusters}_lv{lv}_{opts}_{sector_opts}_{planning_horizons}.nc"
shadow: "shallow"
log:
Expand Down

0 comments on commit 6372427

Please sign in to comment.