Make sure to load autoPyLoT-event information from xml file.

This commit is contained in:
Ludger Küperkoch 2020-07-30 13:27:38 +02:00
parent 79192cda33
commit e083e75d73

View File

@ -22,7 +22,7 @@ https://www.iconfinder.com/iconsets/flavour
GNU Lesser General Public License, Version 3
(http://www.gnu.org/copyleft/lesser.html)
"""
import pdb
import argparse
import matplotlib
import os
@ -2853,7 +2853,11 @@ class MainWindow(QMainWindow):
event.pylot_autopicks = {}
picksdict = picksdict_from_picks(evt=self.get_data().get_evt_data())
event.addPicks(picksdict['manual'])
event.addAutopicks(picksdict['auto'])
if picksdict['auto'] == {}:
event.addAutopicks(picksdict)
else:
event.addAutopicks(picksdict['auto'])
def drawPicks(self, station=None, picktype=None, stime=None):
# if picktype not specified, draw both