introducing automatic data into QtPyLoT
This commit is contained in:
parent
f8db6b1d9f
commit
163a501ae9
@ -488,7 +488,9 @@ class MainWindow(QMainWindow):
|
||||
def setComponent(self, component):
|
||||
self.dispComponent = component
|
||||
|
||||
def getData(self):
|
||||
def getData(self, type='manual'):
|
||||
if type == 'auto':
|
||||
return self.autodata
|
||||
return self.data
|
||||
|
||||
def getPicks(self, type='manual'):
|
||||
@ -736,7 +738,7 @@ class MainWindow(QMainWindow):
|
||||
return rval
|
||||
|
||||
def updatePicks(self, type='manual'):
|
||||
picks = picksdict_from_picks(evt=self.getData().getEvtData())
|
||||
picks = picksdict_from_picks(evt=self.getData(type).getEvtData())
|
||||
if type == 'manual':
|
||||
self.picks.update(picks)
|
||||
elif type == 'auto':
|
||||
|
Loading…
Reference in New Issue
Block a user