File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ def isfloat(x):
238238 try :
239239 float (x )
240240 return x
241- except :
241+ except ValueError :
242242 return False
243243
244244 try :
@@ -387,9 +387,9 @@ def get_turbine_types(print_out=True):
387387 """
388388
389389 df = load_turbine_data_from_oedb ()
390- cp_curves_df = df .iloc [df .loc [df ['has_cp_curve' ] == True ].index ][
390+ cp_curves_df = df .iloc [df .loc [df ['has_cp_curve' ] is True ].index ][
391391 ['manufacturer' , 'turbine_type' , 'has_cp_curve' ]]
392- p_curves_df = df .iloc [df .loc [df ['has_power_curve' ] == True ].index ][
392+ p_curves_df = df .iloc [df .loc [df ['has_power_curve' ] is True ].index ][
393393 ['manufacturer' , 'turbine_type' , 'has_power_curve' ]]
394394 curves_df = pd .merge (p_curves_df , cp_curves_df , how = 'outer' ,
395395 sort = True ).fillna (False )
You can’t perform that action at this time.
0 commit comments