From b8e72683cb129d54448acc951ab5d58fadb6e86d Mon Sep 17 00:00:00 2001 From: lisazeyen <35347358+lisazeyen@users.noreply.github.com> Date: Mon, 4 Dec 2023 12:28:54 +0100 Subject: [PATCH] improve style Co-authored-by: Fabian Neumann --- 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 af0c98ec..f585ad04 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -1693,7 +1693,7 @@ def add_heat(n, costs): unit="MWh_th", ) - if (name == "urban central") & (options["central_heat_vent"]): + if name == "urban central" and options.get("central_heat_vent"): n.madd( "Generator", nodes[name] + f" {name} heat vent",