[bugfix] doubled picks saving XML files
This commit is contained in:
parent
ea7b609091
commit
d067d4787e
@ -69,7 +69,7 @@ class Event(ObsPyEvent):
|
|||||||
|
|
||||||
def clearObsPyPicks(self, picktype):
|
def clearObsPyPicks(self, picktype):
|
||||||
for index, pick in reversed(list(enumerate(self.picks))):
|
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)
|
self.picks.pop(index)
|
||||||
|
|
||||||
def addPicks(self, picks):
|
def addPicks(self, picks):
|
||||||
|
Loading…
Reference in New Issue
Block a user