From 71dbe2aaf27057faae8cbd4ef6a3bd5871ba13a3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 09:52:59 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/prepare_sector_network.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 648fe358..af0c98ec 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -1692,7 +1692,7 @@ def add_heat(n, costs): carrier=name + " heat", unit="MWh_th", ) - + if (name == "urban central") & (options["central_heat_vent"]): n.madd( "Generator", @@ -1704,7 +1704,7 @@ def add_heat(n, costs): p_min_pu=-1, unit="MWh_th", ) - + ## Add heat load for sector in sectors: @@ -3302,6 +3302,7 @@ def set_temporal_aggregation(n, opts, solver_name): break return n + if __name__ == "__main__": if "snakemake" not in globals(): from _helpers import mock_snakemake