differentiate between initial picks for p and s phases as they are picked from different components; zoom window determination for s phases not implemented yet

This commit is contained in:
Sebastian Wehling-Benatelli 2015-06-25 10:30:59 +02:00
parent bb52f8ac83
commit cb5bd7dc09

View File

@ -390,6 +390,12 @@ class PickDlg(QDialog):
return self.picks return self.picks
def setIniPick(self, gui_event): def setIniPick(self, gui_event):
if self.selectPhase.currentText().upper().startswith('P'):
self.setIniPickP(gui_event)
elif self.selectPhase.currentText().upper().startswith('S'):
self.setIniPickS(gui_event)
def setIniPickP(self, gui_event):
trace_number = round(gui_event.ydata) trace_number = round(gui_event.ydata)
@ -444,6 +450,8 @@ class PickDlg(QDialog):
self.setPlotLabels() self.setPlotLabels()
self.draw() self.draw()
def setIniPickS(self, gui_event):
pass
def setPick(self, gui_event): def setPick(self, gui_event):