use snakemake.threads in build_renewable_profiles

This commit is contained in:
Fabian Neumann 2022-03-20 09:50:38 +01:00
parent c4423d43a8
commit ca94709ed3

View File

@ -202,7 +202,7 @@ if __name__ == '__main__':
configure_logging(snakemake) configure_logging(snakemake)
pgb.streams.wrap_stderr() pgb.streams.wrap_stderr()
nprocesses = snakemake.config['atlite'].get('nprocesses') nprocesses = int(snakemake.threads)
noprogress = not snakemake.config['atlite'].get('show_progress', True) noprogress = not snakemake.config['atlite'].get('show_progress', True)
config = snakemake.config['renewable'][snakemake.wildcards.technology] config = snakemake.config['renewable'][snakemake.wildcards.technology]
resource = config['resource'] # pv panel config / wind turbine config resource = config['resource'] # pv panel config / wind turbine config