Skip to content

Fix loss of units with same name and prepare release 0.9.1 - #328

Merged
fneum merged 2 commits into
masterfrom
prepare-release-0.9.1
Oct 7, 2026
Merged

fneum merged 2 commits into
masterfrom
prepare-release-0.9.1

Conversation

@fneum

@fneum fneum commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Problem

In v0.9.0, the wind capacity in Germany in powerplants.csv fell by 69% compared with v0.8.1 (102.8 GW → 32.2 GW). Offshore fell from 11.8 GW to 0.2 GW.

Cause

powerplants() had this line since 2022:

matched.drop_duplicates(["Name", "Fueltype", "Country"])

Its result was never assigned, so it did nothing. #317 assigned the result. In the Marktstammdatenregister, all turbines of a wind park have the same name, so only one turbine per park was kept.

Fix

Remove the line. This restores the behaviour before #317.

fneum and others added 2 commits October 7, 2026 16:14
Remove the name-based drop_duplicates in powerplants(). It was a no-op
until #317 assigned its result. It then kept only one unit per wind park
in MaStR, which removed 77% of the German wind capacity in v0.9.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread test/test_collection.py Dismissed
@fneum
fneum merged commit 614f156 into master Oct 7, 2026
19 checks passed
@fneum
fneum deleted the prepare-release-0.9.1 branch October 7, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant