From 984ab9350c4c05ecad3f9a3be7c628a4d478be59 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Mon, 30 Jan 2023 11:54:19 +0100 Subject: [PATCH] Update scripts/prepare_sector_network.py --- scripts/prepare_sector_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index e07c672f..89d774ca 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -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)