From 63724279a465ae46959a9feb0fd8c93e21aa4761 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Wed, 24 Nov 2021 16:01:58 +0100 Subject: [PATCH] Snakefile: export conda environment --- Snakefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Snakefile b/Snakefile index 76dca9ab..7d7acb70 100644 --- a/Snakefile +++ b/Snakefile @@ -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", @@ -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: