From b2c19eda40e6409257e616ccc9995ed3063733bd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 15 Sep 2023 10:18:01 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/base_network.py | 8 ++++---- scripts/build_line_rating.py | 8 ++++---- scripts/build_renewable_profiles.py | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/base_network.py b/scripts/base_network.py index f40b0395..a176028f 100644 --- a/scripts/base_network.py +++ b/scripts/base_network.py @@ -710,10 +710,10 @@ def base_network( links = _set_electrical_parameters_links(links, config, links_p_nom) converters = _set_electrical_parameters_converters(converters, config) snapshots = { - "start":config["snapshots"]["start"], - "end":config["snapshots"]["end"], - "inclusive":config["snapshots"]["inclusive"], - } + "start": config["snapshots"]["start"], + "end": config["snapshots"]["end"], + "inclusive": config["snapshots"]["inclusive"], + } n = pypsa.Network() n.name = "PyPSA-Eur" diff --git a/scripts/build_line_rating.py b/scripts/build_line_rating.py index cf6b56c4..51c779e5 100755 --- a/scripts/build_line_rating.py +++ b/scripts/build_line_rating.py @@ -149,10 +149,10 @@ if __name__ == "__main__": configure_logging(snakemake) snapshots = { - "start":snakemake.config["snapshots"]["start"], - "end":snakemake.config["snapshots"]["end"], - "inclusive":snakemake.config["snapshots"]["inclusive"], - } + "start": snakemake.config["snapshots"]["start"], + "end": snakemake.config["snapshots"]["end"], + "inclusive": snakemake.config["snapshots"]["inclusive"], + } n = pypsa.Network(snakemake.input.base_network) time = pd.date_range(freq="h", **snapshots) diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py index 863ba4e4..1d3b9956 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -212,10 +212,10 @@ if __name__ == "__main__": capacity_per_sqkm = params["capacity_per_sqkm"] p_nom_max_meth = params.get("potential", "conservative") snapshots = { - "start":snakemake.config["snapshots"]["start"], - "end":snakemake.config["snapshots"]["end"], - "inclusive":snakemake.config["snapshots"]["inclusive"], - } + "start": snakemake.config["snapshots"]["start"], + "end": snakemake.config["snapshots"]["end"], + "inclusive": snakemake.config["snapshots"]["inclusive"], + } if isinstance(params.get("corine", {}), list): params["corine"] = {"grid_codes": params["corine"]}