From aab1dd365e2dcbaf5806783f74eb64810f83132f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:34:01 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/build_industrial_production_per_country.py | 4 +++- scripts/prepare_sector_network.py | 10 ++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/build_industrial_production_per_country.py b/scripts/build_industrial_production_per_country.py index bc5f2eb80..d7a2a0071 100644 --- a/scripts/build_industrial_production_per_country.py +++ b/scripts/build_industrial_production_per_country.py @@ -317,7 +317,9 @@ def separate_basic_chemicals(demand, year): / params["basic_chemicals_without_NH3_production_today"] / 1e3 ) - demand["HVC"] = sum(params["HVC_production_today"].values()) * 1e3 * distribution_key + demand["HVC"] = ( + sum(params["HVC_production_today"].values()) * 1e3 * distribution_key + ) demand["Chlorine"] = params["chlorine_production_today"] * 1e3 * distribution_key demand["Methanol"] = params["methanol_production_today"] * 1e3 * distribution_key diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 463c37051..eace963a8 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -4315,10 +4315,12 @@ def add_endogenous_hvdc_import_options(n, cost_factor=1.0): .to_pandas() ) - exporters_iso2 = [e.split("-")[0] for e in cf["exporters"]] # noqa - exporters = country_shapes.query( - "ISO_A2 in @exporters_iso2" - ).set_index("ISO_A2").representative_point() + exporters_iso2 = [e.split("-")[0] for e in cf["exporters"]] # noqa + exporters = ( + country_shapes.query("ISO_A2 in @exporters_iso2") + .set_index("ISO_A2") + .representative_point() + ) import_links = {} a = regions.representative_point().to_crs(DISTANCE_CRS)