Skip to content

Commit 7b8a992

Browse files
committed
Fix pylint issues
1 parent f56a6b3 commit 7b8a992

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

windpowerlib/wind_turbine.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)