From d84c7ebf6acb0c7d012f7fe3aa40825e47e02fc3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 29 Jun 2023 14:02:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/add_electricity.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/add_electricity.py b/scripts/add_electricity.py index e6c8c01b..4b53fe99 100755 --- a/scripts/add_electricity.py +++ b/scripts/add_electricity.py @@ -162,7 +162,9 @@ def sanitize_carriers(n, config): .reindex(carrier_i) .fillna(carrier_i.to_series().str.title()) ) - n.carriers["nice_name"] = n.carriers.nice_name.where(n.carriers.nice_name != "", nice_names) + n.carriers["nice_name"] = n.carriers.nice_name.where( + n.carriers.nice_name != "", nice_names + ) colors = pd.Series(config["plotting"]["tech_colors"]).reindex(carrier_i) if colors.isna().any(): missing_i = list(colors.index[colors.isna()])