Skip to content

Commit

Permalink
fixing notebook failures
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoyer committed Aug 22, 2024
1 parent e66c295 commit 628cfe8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rdtools/soiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def _calc_result_df(self, trim=False, max_relative_slope_error=500.0, max_negati
results.loc[filt, "run_slope"] = 0
results.loc[filt, "run_slope_low"] = 0
results.loc[filt, "run_slope_high"] = 0
# results.loc[filt, "valid"] = False
results.loc[filt, "valid"] = False

# Calculate the next inferred start loss from next valid interval
results["next_inferred_start_loss"] = np.clip(
Expand All @@ -465,10 +465,10 @@ def _calc_result_df(self, trim=False, max_relative_slope_error=500.0, max_negati
results.loc[results.clean_event, "inferred_begin_shift"] = np.clip(
results.inferred_begin_shift, 0, 1)
#######################################################################

'''
if neg_shift is False:
results.loc[filt, "valid"] = False

'''
if len(results[results.valid]) == 0:
raise NoValidIntervalError("No valid soiling intervals were found")
new_start = results.start.iloc[0]
Expand Down Expand Up @@ -2952,4 +2952,4 @@ def segmented_soiling_period(
# Create Series from modelled profile
sr = pd.Series(z, index=pr.index)

return sr, cp_date
return sr, cp_date

0 comments on commit 628cfe8

Please sign in to comment.