Skip to content

Commit

Permalink
fix linting in soiling
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-springer committed Nov 8, 2024
1 parent 48f02dc commit 0299804
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions rdtools/soiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,16 @@ 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": 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
"inferred_start_loss": (
np.nan if run.pi_norm.isna().any() else run.pi_norm.median()
),
"inferred_end_loss": (
np.nan if run.pi_norm.isna().any() else run.pi_norm.median()
),
"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
# from other breaks/Matt
# from other breaks/Matt
"run_loss_baseline": 0.0, # loss from the polyfit over the soiling intercal/Matt
##############################################################
}
Expand Down

0 comments on commit 0299804

Please sign in to comment.