simplify_network.py fix dict getting

This commit is contained in:
Fabian Hofmann 2021-08-27 10:34:27 +02:00 committed by GitHub
parent a6d2a0a99d
commit b9bbefa09f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,7 +400,7 @@ if __name__ == "__main__":
busmaps = [trafo_map, simplify_links_map, stub_map]
if snakemake.config['clustering']['simplify']['to_substations']:
if snakemake.config.get('clustering', {}).get('simplify', {}).get('to_substations', False):
n, substation_map = aggregate_to_substations(n)
busmaps.append(substation_map)