From d067d4787e3fd618f88b364bb631c9861203c438 Mon Sep 17 00:00:00 2001 From: marcel Date: Thu, 17 Aug 2017 11:54:01 +0200 Subject: [PATCH] [bugfix] doubled picks saving XML files --- pylot/core/util/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/util/event.py b/pylot/core/util/event.py index 8b065b46..f8a3cf0f 100644 --- a/pylot/core/util/event.py +++ b/pylot/core/util/event.py @@ -69,7 +69,7 @@ class Event(ObsPyEvent): def clearObsPyPicks(self, picktype): for index, pick in reversed(list(enumerate(self.picks))): - if pick.method_id == picktype: + if picktype in str(pick.method_id): self.picks.pop(index) def addPicks(self, picks):