From 8565c124c034f90436c5b37c21424d456d7e5e00 Mon Sep 17 00:00:00 2001
From: Philipp Glaum
Date: Fri, 12 Jan 2024 16:50:17 +0100
Subject: [PATCH 1/3] fix bus filter for buses without countries
---
scripts/base_network.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/base_network.py b/scripts/base_network.py
index eeb87bf5..340b6f36 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.isna()
if c_nan_b.sum() > 0:
c_tag = _get_country(buses.loc[c_nan_b])
c_tag.loc[~c_tag.isin(countries)] = np.nan
From 7ebf3b186c5c5d9840208b755e955813e5d8f60f Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Fri, 12 Jan 2024 15:56:15 +0000
Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---
doc/release_notes.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/release_notes.rst b/doc/release_notes.rst
index be6be9fd..52b2ddc2 100644
--- a/doc/release_notes.rst
+++ b/doc/release_notes.rst
@@ -12,7 +12,7 @@ Upcoming Release
* New configuration option ``everywhere_powerplants`` to build conventional powerplants everywhere, irrespective of existing powerplants locations, in the network (https://github.com/PyPSA/pypsa-eur/pull/850).
-* Remove option for wave energy as technology data is not maintained.
+* Remove option for wave energy as technology data is not maintained.
PyPSA-Eur 0.9.0 (5th January 2024)
From 498f3bffadba8d62139fbc8a3ec75a4aba41e12a Mon Sep 17 00:00:00 2001
From: Fabian Neumann
Date: Thu, 18 Jan 2024 18:22:21 +0100
Subject: [PATCH 3/3] Update scripts/base_network.py
Co-authored-by: Fabian Hofmann
---
scripts/base_network.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/base_network.py b/scripts/base_network.py
index 340b6f36..2fa31f98 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.isna()
+ c_nan_b = buses.country.fillna("na") == "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