[adresses #190] autopicks in QtPyLoT can now also be updated
this change is necessary to be able to load autopickdata from storage independently
This commit is contained in:
parent
e164b1f168
commit
f075970f5e
@ -727,7 +727,7 @@ class MainWindow(QMainWindow):
|
||||
self.getPicks(type=type)[station] = stat_picks
|
||||
return rval
|
||||
|
||||
def updatePicks(self):
|
||||
def updatePicks(self, type='manual'):
|
||||
evt = self.getData().getEvtData()
|
||||
picks = {}
|
||||
for pick in evt.picks:
|
||||
@ -753,7 +753,10 @@ class MainWindow(QMainWindow):
|
||||
|
||||
onsets[pick.phase_hint] = phase.copy()
|
||||
picks[station] = onsets.copy()
|
||||
if type == 'manual':
|
||||
self.picks.update(picks)
|
||||
elif type == 'auto':
|
||||
self.autopicks.update(picks)
|
||||
|
||||
def drawPicks(self, station=None, picktype='manual'):
|
||||
# if picks to draw not specified, draw all picks available
|
||||
|
Loading…
Reference in New Issue
Block a user