From ea3fdb6c15bbc0d70308970dad6f7784c970c4b3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 08:58:13 +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 | 2 +- scripts/cluster_network.py | 2 +- scripts/simplify_network.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/base_network.py b/scripts/base_network.py index 90854e34..eda29451 100644 --- a/scripts/base_network.py +++ b/scripts/base_network.py @@ -560,7 +560,7 @@ def _set_countries_and_substations(n, config, country_shapes, offshore_shapes): ~buses["under_construction"] ) - c_nan_b = buses.country == 'na' + c_nan_b = buses.country == "na" if c_nan_b.sum() > 0: c_tag = _get_country(buses.loc[c_nan_b]) c_tag.loc[~c_tag.isin(countries)] = np.nan diff --git a/scripts/cluster_network.py b/scripts/cluster_network.py index 0f3f351f..28f08396 100644 --- a/scripts/cluster_network.py +++ b/scripts/cluster_network.py @@ -470,7 +470,7 @@ if __name__ == "__main__": n = pypsa.Network(snakemake.input.network) # remove integer outputs for compatibility with PyPSA v0.26.0 - n.generators.drop("n_mod", axis=1, inplace=True, errors='ignore') + n.generators.drop("n_mod", axis=1, inplace=True, errors="ignore") exclude_carriers = params.cluster_network["exclude_carriers"] aggregate_carriers = set(n.generators.carrier) - set(exclude_carriers) diff --git a/scripts/simplify_network.py b/scripts/simplify_network.py index d12062c2..f88d10d4 100644 --- a/scripts/simplify_network.py +++ b/scripts/simplify_network.py @@ -537,7 +537,7 @@ if __name__ == "__main__": Nyears = n.snapshot_weightings.objective.sum() / 8760 # remove integer outputs for compatibility with PyPSA v0.26.0 - n.generators.drop("n_mod", axis=1, inplace=True, errors='ignore') + n.generators.drop("n_mod", axis=1, inplace=True, errors="ignore") n, trafo_map = simplify_network_to_380(n)