Skip to content

Commit

Permalink
remove unneeded code in example
Browse files Browse the repository at this point in the history
  • Loading branch information
bayc committed Feb 17, 2024
1 parent 4748438 commit bedd71a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/12_optimize_yaw.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ def calculate_aep(fi, df_windrose, column_name="farm_power"):
yaw_angles = np.array(df_windrose[yaw_cols], dtype=float)
fi.reinitialize(wind_directions=wd_array, wind_speeds=ws_array)

# Map angles from dataframe onto floris wind direction/speed grid
X, Y = np.meshgrid(wd_array, ws_array, indexing='ij')

# Calculate FLORIS for every WD and WS combination and get the farm power
fi.calculate_wake(yaw_angles)
farm_power_array = fi.get_farm_power()
Expand Down

0 comments on commit bedd71a

Please sign in to comment.