[change] replot after manual picking only if necessary (picks changed)
This commit is contained in:
parent
aea77cd49c
commit
053caa5cf6
14
QtPyLoT.py
14
QtPyLoT.py
@ -1626,8 +1626,14 @@ class MainWindow(QMainWindow):
|
|||||||
self.thread.quit()
|
self.thread.quit()
|
||||||
|
|
||||||
def addPicks(self, station, picks, type='manual'):
|
def addPicks(self, station, picks, type='manual'):
|
||||||
# stat_picks = self.getPicksOnStation(station, type)
|
stat_picks = self.getPicksOnStation(station, type)
|
||||||
# rval = False
|
if not stat_picks:
|
||||||
|
rval = False
|
||||||
|
else:
|
||||||
|
#set picks (ugly syntax?)
|
||||||
|
self.getPicks(type=type)[station] = picks
|
||||||
|
rval = True
|
||||||
|
return rval
|
||||||
# if not stat_picks:
|
# if not stat_picks:
|
||||||
# stat_picks = picks
|
# stat_picks = picks
|
||||||
# else:
|
# else:
|
||||||
@ -1651,10 +1657,6 @@ class MainWindow(QMainWindow):
|
|||||||
# else:
|
# else:
|
||||||
# raise Exception('FATAL: Should never occur!')
|
# raise Exception('FATAL: Should never occur!')
|
||||||
# MP MP prompt redundant because new picks have to be accepted in the first place closing PickDlg
|
# MP MP prompt redundant because new picks have to be accepted in the first place closing PickDlg
|
||||||
stat_picks = picks
|
|
||||||
rval = True
|
|
||||||
self.getPicks(type=type)[station] = stat_picks
|
|
||||||
return rval
|
|
||||||
|
|
||||||
def updatePicks(self, type='manual'):
|
def updatePicks(self, type='manual'):
|
||||||
picks = picksdict_from_picks(evt=self.get_data(type).get_evt_data())
|
picks = picksdict_from_picks(evt=self.get_data(type).get_evt_data())
|
||||||
|
@ -1 +1 @@
|
|||||||
7257-dirty
|
aea7-dirty
|
||||||
|
Loading…
Reference in New Issue
Block a user