Skip to content

Enhance/wind farm parameters#15

Draft
Zetison wants to merge 5 commits into
mainfrom
enhance/WindFarmParameters
Draft

Enhance/wind farm parameters#15
Zetison wants to merge 5 commits into
mainfrom
enhance/WindFarmParameters

Conversation

@Zetison

@Zetison Zetison commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

This PR enables more options from sampling the wind_power_timeseries repository. The PR depends on this MR to be merged with main.

  • Extended WindFarmParameters to include an optional turbine_power_curve argument, which allows users to specify a custom power curve for the wind turbine.
    The turbine_power_curve is expected to be a DataFrame with columns wind_speed and power_curve, where wind_speed represents the wind speed values (in m/s) and power_curve represents the corresponding power output of the turbine at those wind speeds.
  • The parameters sigma and wakeloss were also added to WindFarmParameters to enable all options of the wind_power_timeseries repository.
  • The shape parameter was corrected from a string to a float.

@Zetison Zetison requested a review from Copilot June 5, 2026 08:07
@Zetison Zetison self-assigned this Jun 5, 2026
@Zetison Zetison added bug Something isn't working enhancement New feature or request labels Jun 5, 2026
@Zetison Zetison marked this pull request as draft June 5, 2026 08:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the wind-power sampling interface by extending WindFarmParameters and wiring the new options through to the Python wind_power_timeseries call, with corresponding test updates.

Changes:

  • Extend WindFarmParameters with turbine_power_curve, sigma, and wakeloss, and change orientation/shape defaults to nothing with shape now numeric.
  • Convert a Julia DataFrame power curve into a Pandas Series before calling the Python sampler.
  • Update/extend wind-power tests and test utilities to reflect the new parameters and a shorter test horizon.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/datastructures.jl Adds new wind parameters, validates them, and passes them through to the Python sampler.
src/utils.jl Adds to_pandas_series helper for converting a power-curve DataFrame to Pandas.
test/utils.jl Updates wind test graph helper to accept/pass new parameters and uses a shorter horizon.
test/test_windpower.jl Updates parameter tests, adds validation tests, and refactors wind mathematical formulation tests.
test/runtests.jl Adds DataFrames import for test usage.
test/Project.toml Adds DataFrames as a test dependency.
NEWS.md Updates release notes describing the wind parameter extensions.
docs/src/library/internals/methods-EMLI.md Adds to_pandas_series to the internal methods list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/datastructures.jl Outdated
Comment thread test/test_windpower.jl Outdated
Comment thread test/test_windpower.jl
Comment thread src/utils.jl

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Comment thread src/datastructures.jl Outdated
Comment thread src/datastructures.jl Outdated
Comment thread src/datastructures.jl
Comment thread src/utils.jl Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Comment thread src/datastructures.jl
Comment thread src/datastructures.jl

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Comment thread src/datastructures.jl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants