Make sure to load autoPyLoT-event information from xml file.
This commit is contained in:
parent
79192cda33
commit
e083e75d73
6
PyLoT.py
6
PyLoT.py
@ -22,7 +22,7 @@ https://www.iconfinder.com/iconsets/flavour
|
|||||||
GNU Lesser General Public License, Version 3
|
GNU Lesser General Public License, Version 3
|
||||||
(http://www.gnu.org/copyleft/lesser.html)
|
(http://www.gnu.org/copyleft/lesser.html)
|
||||||
"""
|
"""
|
||||||
|
import pdb
|
||||||
import argparse
|
import argparse
|
||||||
import matplotlib
|
import matplotlib
|
||||||
import os
|
import os
|
||||||
@ -2853,8 +2853,12 @@ class MainWindow(QMainWindow):
|
|||||||
event.pylot_autopicks = {}
|
event.pylot_autopicks = {}
|
||||||
picksdict = picksdict_from_picks(evt=self.get_data().get_evt_data())
|
picksdict = picksdict_from_picks(evt=self.get_data().get_evt_data())
|
||||||
event.addPicks(picksdict['manual'])
|
event.addPicks(picksdict['manual'])
|
||||||
|
if picksdict['auto'] == {}:
|
||||||
|
event.addAutopicks(picksdict)
|
||||||
|
else:
|
||||||
event.addAutopicks(picksdict['auto'])
|
event.addAutopicks(picksdict['auto'])
|
||||||
|
|
||||||
|
|
||||||
def drawPicks(self, station=None, picktype=None, stime=None):
|
def drawPicks(self, station=None, picktype=None, stime=None):
|
||||||
# if picktype not specified, draw both
|
# if picktype not specified, draw both
|
||||||
if not stime:
|
if not stime:
|
||||||
|
Loading…
Reference in New Issue
Block a user