Convert the WeDoWind example to the v1 interface
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- Half a day
- Newbie friendliness
- 58/100
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
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: aColumnSchemafor the two turbines, the mast as a non-turbine measurement rather than copied onto the turbines, and anUpgradewith a pre/post timing. - Turn the wind direction exclusions into a
Labeland use it in theAnalysisSpec. - 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 (
V0BinnedMethoduntil it moves intowind_up.methodsasbinned_power_curve).toggle_energy_ratiois 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.pyto 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from resgroup/wind-up
-
v1
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
Maintainers usually reply within 1 day
All issues in resgroup/wind-up
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
UKGovernmentBEIS/inspect_ai#6733 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ProyectoRespira/respira-webapp#334 ·
Maintainers usually reply within 1 day
-
bug security-alert
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
spectrayan/carefold#391 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Jakeschincariol/instagram-agent-skill#83 ·
Maintainers usually reply within 10 days
-
Difficulty 1/5 Under an hour Newbie friendliness 64/100