improve style

Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
This commit is contained in:
lisazeyen 2023-12-04 12:28:54 +01:00 committed by GitHub
parent 7b24557bd3
commit b8e72683cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",