[addresses #167] started fixing the multiple phase saving issue

This commit is contained in:
2015-08-28 16:01:42 +02:00
parent 497ca39c91
commit 1f7049691c
3 changed files with 21 additions and 7 deletions

View File

@@ -1 +1 @@
1abc-dirty
497c-dirty

View File

@@ -52,6 +52,13 @@ class Data(object):
def __str__(self):
return str(self.wfdata)
def getPicksStr(self):
picks_str = ''
for pick in self.getEvtData().picks:
picks_str += str(pick) + '\n'
return picks_str
def getParent(self):
"""
@@ -360,9 +367,11 @@ class Data(object):
def applyPicks(picks):
"""
Creates ObsPy pick objects and append it to the picks list from the
PyLoT dictionary contain all picks.
:param picks:
:raise OverwriteError:
:raise OverwriteError: raises an OverwriteError if the picks list is
not empty. The GUI will then ask for a decision.
"""
firstonset = None
if self.getEvtData().picks: