simplify_network.py fix dict getting
This commit is contained in:
parent
a6d2a0a99d
commit
b9bbefa09f
@ -400,7 +400,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
busmaps = [trafo_map, simplify_links_map, stub_map]
|
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)
|
n, substation_map = aggregate_to_substations(n)
|
||||||
busmaps.append(substation_map)
|
busmaps.append(substation_map)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user