Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Oct 19, 2019
1 parent ea3e089 commit 3f62f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WTC_toolbox/turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def __init__(self,performance_table, pitch_initial_rad, TSR_initial):
# Optimal below rated TSR and blade pitch
self.max = np.amax(performance_table)
self.max_ind = np.where(performance_table == np.amax(performance_table))
self.TSR_opt = TSR_initial[self.max_ind[0]]
self.TSR_opt = np.float64(TSR_initial[self.max_ind[0]])
self.pitch_opt = pitch_initial_rad[self.max_ind[1]]

def interp_surface(self,pitch,TSR):
Expand Down

0 comments on commit 3f62f38

Please sign in to comment.