Merge pull request #335 from PyPSA/smk-threads

use snakemake.threads in build_renewable_profiles
This commit is contained in:
Fabian Neumann 2022-03-24 14:17:45 +01:00 committed by GitHub
commit 8df94c862b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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