preparing to parse the picks to the picking window
This commit is contained in:
parent
b8aabfce99
commit
b8c92ed551
@ -507,7 +507,8 @@ class MainWindow(QMainWindow):
|
|||||||
self.updateStatus('picking on station {0}'.format(station))
|
self.updateStatus('picking on station {0}'.format(station))
|
||||||
data = self.getData().getWFData()
|
data = self.getData().getWFData()
|
||||||
pickDlg = PickDlg(self, data=data.select(station=station),
|
pickDlg = PickDlg(self, data=data.select(station=station),
|
||||||
station=station)
|
station=station,
|
||||||
|
picks=self.getPicksOnStation(station))
|
||||||
if pickDlg.exec_():
|
if pickDlg.exec_():
|
||||||
self.updateStatus('picks accepted ({0})'.format(station))
|
self.updateStatus('picks accepted ({0})'.format(station))
|
||||||
self.addPicks(station, pickDlg.getPicks())
|
self.addPicks(station, pickDlg.getPicks())
|
||||||
|
@ -158,14 +158,18 @@ class MPLWidget(FigureCanvas):
|
|||||||
axann.set_bbox(dict(facecolor='lightgrey', alpha=.6))
|
axann.set_bbox(dict(facecolor='lightgrey', alpha=.6))
|
||||||
|
|
||||||
class PickDlg(QDialog):
|
class PickDlg(QDialog):
|
||||||
def __init__(self, parent=None, data=None, station=None, rotate=False):
|
def __init__(self, parent=None, data=None, station=None, picks=None,
|
||||||
|
rotate=False):
|
||||||
super(PickDlg, self).__init__(parent)
|
super(PickDlg, self).__init__(parent)
|
||||||
|
|
||||||
# initialize attributes
|
# initialize attributes
|
||||||
self.station = station
|
self.station = station
|
||||||
self.rotate = rotate
|
self.rotate = rotate
|
||||||
self.components = 'ZNE'
|
self.components = 'ZNE'
|
||||||
self.picks = {}
|
if picks:
|
||||||
|
self.picks = picks
|
||||||
|
else:
|
||||||
|
self.picks = {}
|
||||||
self.filteroptions = FILTERDEFAULTS
|
self.filteroptions = FILTERDEFAULTS
|
||||||
|
|
||||||
# initialize panning attributes
|
# initialize panning attributes
|
||||||
|
Loading…
Reference in New Issue
Block a user