From ca94709ed3621e7f75bdfcb77b1133e8ffb83306 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Sun, 20 Mar 2022 09:50:38 +0100 Subject: [PATCH] use snakemake.threads in build_renewable_profiles --- scripts/build_renewable_profiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py index 36845da5..a2b2eda6 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -202,7 +202,7 @@ if __name__ == '__main__': configure_logging(snakemake) pgb.streams.wrap_stderr() - nprocesses = snakemake.config['atlite'].get('nprocesses') + nprocesses = int(snakemake.threads) noprogress = not snakemake.config['atlite'].get('show_progress', True) config = snakemake.config['renewable'][snakemake.wildcards.technology] resource = config['resource'] # pv panel config / wind turbine config