[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
|
self.getPicks(type=type)[station] = stat_picks
|
||||||
return rval
|
return rval
|
||||||
|
|
||||||
def updatePicks(self):
|
def updatePicks(self, type='manual'):
|
||||||
evt = self.getData().getEvtData()
|
evt = self.getData().getEvtData()
|
||||||
picks = {}
|
picks = {}
|
||||||
for pick in evt.picks:
|
for pick in evt.picks:
|
||||||
@ -753,7 +753,10 @@ class MainWindow(QMainWindow):
|
|||||||
|
|
||||||
onsets[pick.phase_hint] = phase.copy()
|
onsets[pick.phase_hint] = phase.copy()
|
||||||
picks[station] = onsets.copy()
|
picks[station] = onsets.copy()
|
||||||
|
if type == 'manual':
|
||||||
self.picks.update(picks)
|
self.picks.update(picks)
|
||||||
|
elif type == 'auto':
|
||||||
|
self.autopicks.update(picks)
|
||||||
|
|
||||||
def drawPicks(self, station=None, picktype='manual'):
|
def drawPicks(self, station=None, picktype='manual'):
|
||||||
# if picks to draw not specified, draw all picks available
|
# if picks to draw not specified, draw all picks available
|
||||||
|
Loading…
Reference in New Issue
Block a user