From 24b69412171d0c74c203f5c0347879bf5c14142b Mon Sep 17 00:00:00 2001 From: Nikhar Abbas Date: Sat, 19 Oct 2019 13:06:27 -0600 Subject: [PATCH] bug fix --- WTC_toolbox/turbine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WTC_toolbox/turbine.py b/WTC_toolbox/turbine.py index 6a64c115b..ca48d1009 100644 --- a/WTC_toolbox/turbine.py +++ b/WTC_toolbox/turbine.py @@ -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):