Skip to content

Commit

Permalink
work on event, not detection
Browse files Browse the repository at this point in the history
  • Loading branch information
calum-chamberlain authored Jun 26, 2024
1 parent 29f53d2 commit 5bd5d48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eqcorrscan/core/match_filter/party.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,10 @@ def rethreshold(self, new_threshold, new_threshold_type='MAD',
d.threshold_input = new_threshold
d.threshold_type = new_threshold_type
if d.event:
d.comments = [
c for c in d.comments
d.event.comments = [
c for c in d.event.comments
if not c.lower().startswith("threshold=")]
d.comments.append(Comment(
d.event.comments.append(Comment(

Check warning on line 497 in eqcorrscan/core/match_filter/party.py

View check run for this annotation

Codecov / codecov/patch

eqcorrscan/core/match_filter/party.py#L497

Added line #L497 was not covered by tests
text=f"threshold={new_thresh}"))

rethresh_detections.append(d)
Expand Down

0 comments on commit 5bd5d48

Please sign in to comment.