Skip to content

Commit

Permalink
work on text not comment
Browse files Browse the repository at this point in the history
  • Loading branch information
calum-chamberlain authored Jun 26, 2024
1 parent 0b72e73 commit 91a3ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eqcorrscan/core/match_filter/party.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def rethreshold(self, new_threshold, new_threshold_type='MAD',
if d.event:
d.event.comments = [
c for c in d.event.comments
if not c.lower().startswith("threshold=")]
if not c.text.lower().startswith("threshold=")]
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}"))

Expand Down

0 comments on commit 91a3ac2

Please sign in to comment.