From d81c7e014d2e2d594374c67e84aa04b626709ad3 Mon Sep 17 00:00:00 2001 From: Mayk Thewessen Date: Wed, 18 Mar 2026 11:11:33 +0100 Subject: [PATCH 1/2] OPSD EU: prefer energy_source_level_3 for Fueltype when available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the most specific energy source classification from OPSD's three-level hierarchy. When energy_source_level_3 is set (e.g. "Biomass and biogas" for coal plants with biomass co-firing), use it instead of the top-level energy_source. Falls back through level_3 → energy_source → level_1. Closes #286 Co-Authored-By: Claude Opus 4.6 (1M context) --- powerplantmatching/data.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/powerplantmatching/data.py b/powerplantmatching/data.py index 524c15b..7c24152 100644 --- a/powerplantmatching/data.py +++ b/powerplantmatching/data.py @@ -194,7 +194,9 @@ def OPSD( .assign( Name=lambda df: df.Name.str.replace("\x96", " "), # for geoparsing projectID=lambda s: "OEU-" + s.index.astype(str), - Fueltype=lambda d: d.Fueltype.fillna(d.Energy_Source_Level_1), + Fueltype=lambda d: d.Energy_Source_Level_3.where( + d.Energy_Source_Level_3.notna(), d.Fueltype + ).fillna(d.Energy_Source_Level_1), # We don't want to include this as this is overestimating CHP capacities # Set=lambda df: np.where(df.Set.isin(["yes", "Yes"]), "CHP", "PP"), ) From ea845362a731c5568667269af498dfc1466d959b Mon Sep 17 00:00:00 2001 From: Mayk Thewessen Date: Fri, 19 Jun 2026 18:22:03 +0200 Subject: [PATCH 2/2] Correct Borssele 1 nuclear capacity to net 485 MW GEM (projectID G100000500496) reports Borssele 1 at 515 MW, which is the gross figure; IAEA PRIS lists 482 MWe net / 512 MWe gross and operator EPZ states ~485 MW. The matched dataset otherwise reports net capacities, so the GEM value overstated NL nuclear by ~6%. Add a capacity-only manual correction. --- powerplantmatching/package_data/manual_corrections.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/powerplantmatching/package_data/manual_corrections.csv b/powerplantmatching/package_data/manual_corrections.csv index 52d0093..2524cf8 100644 --- a/powerplantmatching/package_data/manual_corrections.csv +++ b/powerplantmatching/package_data/manual_corrections.csv @@ -85,3 +85,4 @@ 83,48WSTN00000SROM0,ENTSOE,,,,,40.0,, 84,48WSTN00000STVEO,ENTSOE,,,,,0.0,, 85,GBR2001173,GPD,,,,,,Combustion Engine,PP +86,G100000500496,GEM,,,,,485.0,,