File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1919except ImportError :
2020 rq = None
2121
22+
2223class WindTurbine (object ):
2324 r"""
2425 Defines a standard set of wind turbine attributes.
@@ -338,6 +339,7 @@ def load_turbine_data_from_oedb():
338339 'see https://pypi.org/project/requests/' )
339340 return turbine_data
340341
342+
341343def get_turbine_types (print_out = True ):
342344 r"""
343345 Get the names of all possible wind turbine types for which the power
@@ -374,7 +376,7 @@ def get_turbine_types(print_out=True):
374376 ['manufacturer' , 'turbine_type' , 'has_cp_curve' ]]
375377 p_curves_df = df .iloc [df .loc [df ['has_power_curve' ] == True ].index ][
376378 ['manufacturer' , 'turbine_type' , 'has_power_curve' ]]
377- curves_df = pd .merge (p_curves_df , cp_curves_df , how = 'outer' ,
379+ curves_df = pd .merge (p_curves_df , cp_curves_df , how = 'outer' ,
378380 sort = True ).fillna (False )
379381 if print_out :
380382 pd .set_option ('display.max_rows' , len (curves_df ))
You can’t perform that action at this time.
0 commit comments