[refs #200] started to implement magnitude determination from QtPyLoT
This commit is contained in:
parent
f1d806c154
commit
facffa1bf2
15
QtPyLoT.py
15
QtPyLoT.py
@ -337,8 +337,8 @@ class MainWindow(QMainWindow):
|
|||||||
# pickToolBar.setObjectName("PickTools")
|
# pickToolBar.setObjectName("PickTools")
|
||||||
# self.addActions(pickToolBar, pickToolActions)
|
# self.addActions(pickToolBar, pickToolActions)
|
||||||
|
|
||||||
locateEvent = self.createAction(parent=self, text='locateEvent',
|
locateEvent = self.createAction(parent=self, text='locate_event',
|
||||||
slot=self.locateEvent,
|
slot=self.locate_event,
|
||||||
shortcut='Alt+Ctrl+L',
|
shortcut='Alt+Ctrl+L',
|
||||||
icon=locate_icon,
|
icon=locate_icon,
|
||||||
tip='Locate the event using '
|
tip='Locate the event using '
|
||||||
@ -891,7 +891,7 @@ class MainWindow(QMainWindow):
|
|||||||
else:
|
else:
|
||||||
raise TypeError('Unknow picktype {0}'.format(picktype))
|
raise TypeError('Unknow picktype {0}'.format(picktype))
|
||||||
|
|
||||||
def locateEvent(self):
|
def locate_event(self):
|
||||||
"""
|
"""
|
||||||
locate event using the manually picked phases
|
locate event using the manually picked phases
|
||||||
:return:
|
:return:
|
||||||
@ -906,7 +906,7 @@ class MainWindow(QMainWindow):
|
|||||||
locroot = settings.value("{0}/rootPath".format(loctool), None)
|
locroot = settings.value("{0}/rootPath".format(loctool), None)
|
||||||
if locroot is None:
|
if locroot is None:
|
||||||
self.PyLoTprefs()
|
self.PyLoTprefs()
|
||||||
self.locateEvent()
|
self.locate_event()
|
||||||
|
|
||||||
infile = settings.value("{0}/inputFile".format(loctool), None)
|
infile = settings.value("{0}/inputFile".format(loctool), None)
|
||||||
|
|
||||||
@ -946,6 +946,13 @@ class MainWindow(QMainWindow):
|
|||||||
|
|
||||||
self.getData().applyEVTData(lt.read_location(locpath), type='event')
|
self.getData().applyEVTData(lt.read_location(locpath), type='event')
|
||||||
|
|
||||||
|
def calc_magnitude(self):
|
||||||
|
if self.getData().getEvtData().origins:
|
||||||
|
mag = None
|
||||||
|
return mag
|
||||||
|
else:
|
||||||
|
return
|
||||||
|
|
||||||
def check4Loc(self):
|
def check4Loc(self):
|
||||||
return self.picksNum() > 4
|
return self.picksNum() > 4
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user