Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Gridded layout opt incorrectly generating spanning grid #984

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

misi9170
Copy link
Collaborator

This small pull request fixes two bugs and adds one enhancement to the recently developed LayoutOptimizationGridded class.

  • Fixes an incorrect line that could result in a "spanning" layout that did not actually span the boundary area
  • Ensures that only a single rotor_diameter is returned, which was causing problem as the dimension of fmodel.core.farm.rotor_diameters is not always 1.
  • Makes minor enhancement to ensure that n_turbines_max is of type int, rather than a float that will always be a whole number, which is then useful for indexing arrays/lists.

@misi9170 misi9170 added bug Something isn't working enhancement An improvement of an existing feature labels Sep 19, 2024
Copy link
Collaborator

@paulf81 paulf81 left a comment

Choose a reason for hiding this comment

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

These changes make sense to me

@misi9170 misi9170 merged commit a1c2134 into NREL:develop Sep 19, 2024
8 checks passed
@misi9170 misi9170 mentioned this pull request Oct 7, 2024
4 tasks
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 An improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants