diff --git a/QtPyLoT.py b/QtPyLoT.py index 2e19f840..884045eb 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -1478,6 +1478,7 @@ class MainWindow(QMainWindow): self.locateEvent.setEnabled(True) if event.pylot_autopicks: self.drawPicks(picktype='auto') + if event.pylot_picks and event.pylot_autopicks: self.compare_action.setEnabled(True) self.draw() diff --git a/pylot/core/io/data.py b/pylot/core/io/data.py index 740a0b05..0e44ca5c 100644 --- a/pylot/core/io/data.py +++ b/pylot/core/io/data.py @@ -226,12 +226,10 @@ class Data(object): # try exporting event via ObsPy else: - print(self.get_evt_data()) evtdata_org = self.get_evt_data() - eventpath = evtdata_org.path picks = evtdata_org.picks picks_copy = copy.deepcopy(picks) - evtdata_copy = Event(eventpath) + evtdata_copy = Event(fnout) evtdata_copy.picks = picks_copy # check for stations picked automatically as well as manually diff --git a/pylot/core/pick/compare.py b/pylot/core/pick/compare.py index 3dbd8541..3319bce5 100644 --- a/pylot/core/pick/compare.py +++ b/pylot/core/pick/compare.py @@ -252,11 +252,7 @@ class PDFDictionary(object): @classmethod def from_quakeml(self, fn): - cat = read_events(fn) - if len(cat) > 1: - raise NotImplementedError('reading more than one event at the same ' - 'time is not implemented yet! Sorry!') - return PDFDictionary(picksdict_from_picks(cat[0])) # MP MP TODO: change function argument (auto/manu) + return PDFDictionary(fn) # LK TODO: check if stations are available with both automatic and manual picks def get_all(self, phase): rlist = list()