@@ -240,26 +240,21 @@ def plot_or_print(my_turbine, e126, dummy_turbine):
240240 print (my_turbine .power_output )
241241 print (dummy_turbine .power_output )
242242
243- # plot or print power (coefficient) curve
243+ # plot or print power curve
244244 if plt :
245- if e126 .power_coefficient_curve is not None :
246- e126 .power_coefficient_curve .plot (
247- x = 'wind_speed' , y = 'value' , style = '*' ,
248- title = 'Enercon E126 power coefficient curve' )
249- plt .show ()
250245 if e126 .power_curve is not None :
251246 e126 .power_curve .plot (x = 'wind_speed' , y = 'value' , style = '*' ,
252247 title = 'Enercon E126 power curve' )
253248 plt .show ()
254- if my_turbine .power_coefficient_curve is not None :
255- my_turbine .power_coefficient_curve .plot (
256- x = 'wind_speed' , y = 'value' , style = '*' ,
257- title = 'myTurbine power coefficient curve' )
258- plt .show ()
259249 if my_turbine .power_curve is not None :
260250 my_turbine .power_curve .plot (x = 'wind_speed' , y = 'value' , style = '*' ,
261251 title = 'myTurbine power curve' )
262252 plt .show ()
253+ if dummy_turbine .power_coefficient_curve is not None :
254+ dummy_turbine .power_coefficient_curve .plot (
255+ x = 'wind_speed' , y = 'value' , style = '*' ,
256+ title = 'dummyTurbine power coefficient curve' )
257+ plt .show ()
263258 else :
264259 if e126 .power_coefficient_curve is not None :
265260 print (e126 .power_coefficient_curve )
0 commit comments