Skip to content

Commit

Permalink
Fix failing docstring test for NaN values in "has_cp_curve"
Browse files Browse the repository at this point in the history
  • Loading branch information
birgits committed Feb 1, 2024
1 parent 285a96a commit 3a6ed88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windpowerlib/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ def get_turbine_types(turbine_library="local", print_out=True, filter_=True):
+ "but must be 'local' or 'oedb'."
)
if filter_:
cp_curves_df = df.loc[df["has_cp_curve"]][
cp_curves_df = df.loc[df["has_cp_curve"].fillna(False)][
["manufacturer", "turbine_type", "has_cp_curve"]
]
p_curves_df = df.loc[df["has_power_curve"]][
p_curves_df = df.loc[df["has_power_curve"].fillna(False)][
["manufacturer", "turbine_type", "has_power_curve"]
]
curves_df = pd.merge(
Expand Down

0 comments on commit 3a6ed88

Please sign in to comment.