Snakefile: rename attrs to attr in add_electricity input function

This commit is contained in:
Fabian 2022-06-28 13:15:37 +02:00
parent 917f41ef21
commit 522f218eed

View File

@ -218,7 +218,7 @@ rule add_electricity:
nuts3_shapes='resources/nuts3_shapes.geojson', nuts3_shapes='resources/nuts3_shapes.geojson',
**{f"profile_{tech}": f"resources/profile_{tech}.nc" **{f"profile_{tech}": f"resources/profile_{tech}.nc"
for tech in config['renewable']}, for tech in config['renewable']},
**{f"conventional_{carrier}_{attrs}": fn for carrier in config.get('conventional', {None: {}}).values() for attrs, fn in carrier.items() if str(fn).startswith("data/")}, **{f"conventional_{carrier}_{attr}": fn for carrier in config.get('conventional', {None: {}}).values() for attr, fn in carrier.items() if str(fn).startswith("data/")},
output: "networks/elec.nc" output: "networks/elec.nc"
log: "logs/add_electricity.log" log: "logs/add_electricity.log"
benchmark: "benchmarks/add_electricity" benchmark: "benchmarks/add_electricity"