@@ -69,9 +69,8 @@ def cp_curve(v_wind, rho_hub, d_rotor, cp_values):
6969 series_index = v_wind .index
7070 except AttributeError :
7171 series_index = range (1 , len (power_output )+ 1 )
72- power_output = pd .Series (data = power_output , index = series_index ,
73- name = 'feedin_wind_turbine' )
74- return power_output
72+ return pd .Series (data = power_output , index = series_index ,
73+ name = 'feedin_wind_turbine' )
7574
7675
7776def cp_curve_density_corr (v_wind , rho_hub , d_rotor , cp_values ):
@@ -152,9 +151,8 @@ def p_curve(p_values, v_wind):
152151 series_index = v_wind .index
153152 except AttributeError :
154153 series_index = range (1 , len (power_output )+ 1 )
155- power_output = pd .Series (data = power_output , index = series_index ,
156- name = 'feedin_wind_turbine' )
157- return power_output
154+ return pd .Series (data = power_output , index = series_index ,
155+ name = 'feedin_wind_turbine' )
158156
159157
160158def p_curve_density_corr (v_wind , rho_hub , p_values ):
@@ -233,6 +231,5 @@ def p_curve_density_corr(v_wind, rho_hub, p_values):
233231 series_index = v_wind .index
234232 except AttributeError :
235233 series_index = range (1 , len (power_output )+ 1 )
236- power_output = pd .Series (data = power_output , index = series_index ,
237- name = 'feedin_wind_turbine' )
238- return power_output
234+ return pd .Series (data = power_output , index = series_index ,
235+ name = 'feedin_wind_turbine' )
0 commit comments