From fa093ccac6f61356408a54e14aaba12054362a7d Mon Sep 17 00:00:00 2001 From: Ludger Kueperkoch Date: Wed, 3 Jun 2020 13:19:31 +0200 Subject: [PATCH] Take into account that creation info sometimes is not available. --- pylot/core/util/widgets.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 34121c1d..a741a01e 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1969,6 +1969,10 @@ class PickDlg(QDialog): starttime = trace.stats.starttime station_coords = self.metadata.get_coordinates(station_id, starttime) origins = self.pylot_event.origins + if phases == ['None', 'None']: + print("get_arrivals: Creation info (manual or auto) not available!") + print("Return!") + return if origins: source_origin = origins[0] else: