Skip to content

Commit

Permalink
quick fix mean runtimewarning
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-springer committed Nov 8, 2024
1 parent 7df691c commit b0c4510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rdtools/soiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ def _calc_result_df(self, trim=False, max_relative_slope_error=500.0, max_negati
"run_slope_high": 0,
"max_neg_step": min(run.delta),
"start_loss": 1,
"inferred_start_loss": run.pi_norm.median(), # changed from mean/Matt
"inferred_end_loss": run.pi_norm.median(), # changed from mean/Matt
"inferred_start_loss": np.nan if run.pi_norm.isna().any() else run.pi_norm.median(), # changed from mean/Matt
"inferred_end_loss": np.nan if run.pi_norm.isna().any() else run.pi_norm.median(), # changed from mean/Matt
"slope_err": 10000, # added high dummy start value for later logic/Matt
"valid": False,
"clean_event": run.clean_event.iloc[0], # record of clean events to distiguisih
Expand Down

0 comments on commit b0c4510

Please sign in to comment.