From 91a3ac20930fb999987eb7806390da1960b8bf98 Mon Sep 17 00:00:00 2001 From: Calum Chamberlain Date: Wed, 26 Jun 2024 18:12:06 +1200 Subject: [PATCH] work on text not comment --- eqcorrscan/core/match_filter/party.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eqcorrscan/core/match_filter/party.py b/eqcorrscan/core/match_filter/party.py index 10f51c2b..fafec7f5 100644 --- a/eqcorrscan/core/match_filter/party.py +++ b/eqcorrscan/core/match_filter/party.py @@ -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( text=f"threshold={new_thresh}"))