Skip to content

Commit 3a6ed88

Browse files
committed
Fix failing docstring test for NaN values in "has_cp_curve"
1 parent 285a96a commit 3a6ed88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windpowerlib/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ def get_turbine_types(turbine_library="local", print_out=True, filter_=True):
9292
+ "but must be 'local' or 'oedb'."
9393
)
9494
if filter_:
95-
cp_curves_df = df.loc[df["has_cp_curve"]][
95+
cp_curves_df = df.loc[df["has_cp_curve"].fillna(False)][
9696
["manufacturer", "turbine_type", "has_cp_curve"]
9797
]
98-
p_curves_df = df.loc[df["has_power_curve"]][
98+
p_curves_df = df.loc[df["has_power_curve"].fillna(False)][
9999
["manufacturer", "turbine_type", "has_power_curve"]
100100
]
101101
curves_df = pd.merge(

0 commit comments

Comments
 (0)