From d2624f80707835a451ad74c352482dc8bb89578d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Sep 2023 14:17:16 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/solve_network.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/solve_network.py b/scripts/solve_network.py index b2449237..1537a59b 100644 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -655,11 +655,13 @@ def solve_network(n, config, solving, opts="", **kwargs): saturated = n.links.loc[mask, "p_nom_max"] == n.links.loc[mask, "p_nom_opt"] if saturated.any(): - logger.warning(( - "Potential for enhanced geothermal heat is saturated at bus(es):\n" - f"{', '.join(n.links.loc[saturated.loc[saturated.astype(bool)].index, 'location'].tolist())}.\n" - "Consider setting config['sector']['enhanced_geothermal_performant'] to False." - )) + logger.warning( + ( + "Potential for enhanced geothermal heat is saturated at bus(es):\n" + f"{', '.join(n.links.loc[saturated.loc[saturated.astype(bool)].index, 'location'].tolist())}.\n" + "Consider setting config['sector']['enhanced_geothermal_performant'] to False." + ) + ) return n