Convert the WeDoWind example to the v1 interface

Aperta
#186 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@maoji-y ci sta già lavorando.

Dal 22/11/2026.

  • #187 di @maoji-y — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
Mezza giornata
Idoneità per principianti
58/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
29
Fork
13
Merge medio
1g 4h
PR unite (30g)
27

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di resgroup/wind-up

Tutte le issue di resgroup/wind-up

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.