Convert the WeDoWind example to the v1 interface

Open
#186 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@maoji-y is already working on this.

Since Nov 22, 2026.

  • #187 by @maoji-y — open

Assessment

Difficulty
4/5
Estimated time
Half a day
Newbie friendliness
58/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
data

Research direction

Start with examples/wedowind_example.py and compare its v0 flow with the SMARTEOLE notebook’s v1 interface. Then read the v1 WindFarmFacts, AnalysisSpec, and binned power curve method APIs, along with tests/test_wedowind.py. Done means the example and test use the v1 route, the README example list is updated, results match the v0 outputs, and the pitch angle case recovers the injected uplift.

Written by the indexing model from the issue text.

Description

v1

examples/wedowind_example.py still runs on the v0 API (wind_up_v0). The SMARTEOLE notebook has moved to the v1 interface (WindFarmFacts, AnalysisSpec, method.estimate(facts, analyses)); this example should follow.

What the example is

A pre/post analysis of the Turbine Upgrade Dataset (Ding, 2021, Zenodo 5516556), in two cases: pitch angle and vortex generator. Each has one test turbine and one reference, a met mast wind speed, power normalised to rated, made-up coordinates and a fake reanalysis series. The pitch angle case has a known injected uplift (+5 % above 9 m/s), so it is a pre/post example with a ground truth.

What converting it involves

  • Express the data as WindFarmFacts: a ColumnSchema for the two turbines, the mast as a non-turbine measurement rather than copied onto the turbines, and an Upgrade with a pre/post timing.
  • Turn the wind direction exclusions into a Label and use it in the AnalysisSpec.
  • Place the made-up turbine coordinates on the WGS84 geodesic (wind_up.geodesy) instead of the current flat-earth conversion.
  • Decide what to do about the reanalysis: keep a clearly labelled fake series or drop it if the method allows.
  • Run it with the binned power curve method (V0BinnedMethod until it moves into wind_up.methods as binned_power_curve). toggle_energy_ratio is toggle-only, and the power model is outside its valid domain here (one reference, about 8 weeks after the upgrade, under the 9-month training floor).
  • Check the results match the current v0 outputs and that the pitch angle case recovers the injected uplift.
  • Update tests/test_wedowind.py to the v1 route and the README's example list.

Estimated effort: about half a day.

Dominant language
Python
Stars
29
Forks
13
Avg merge
1d 4h
Merged PRs (30d)
27

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from resgroup/wind-up

All issues in resgroup/wind-up

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.