Skip to content

Commit

Permalink
Update pp_analysis.py
Browse files Browse the repository at this point in the history
change RuntimeError to warning for nan result
  • Loading branch information
aclerc committed May 3, 2024
1 parent 05cbaf4 commit eeed135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wind_up/pp_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def cook_pp(pp_df: pd.DataFrame, pre_or_post: str, ws_bin_width: float, rated_po

if pp_df[[col for col in pp_df.columns if col is not raw_pw_col]].isna().any().any():
msg = "pp_df has missing values"
raise RuntimeError(msg)
result_manager.warning(msg)

return pp_df

Expand Down

0 comments on commit eeed135

Please sign in to comment.