Update scripts/prepare_sector_network.py

This commit is contained in:
Fabian Neumann 2023-01-30 11:54:19 +01:00 committed by GitHub
parent 6996748d9b
commit 984ab9350c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2920,7 +2920,7 @@ if __name__ == "__main__":
first_year_myopic = ((snakemake.config["foresight"] == 'myopic') and
(snakemake.config["scenario"]["planning_horizons"][0]==investment_year))
if options["cluster_heat_buses"] and not first_year_myopic:
if options.get("cluster_heat_buses", False) and not first_year_myopic:
cluster_heat_buses(n)