From f65b5efe41d469aee749c3e90bea4cbca3ec5283 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Sun, 27 Aug 2017 17:51:04 +0200 Subject: [PATCH] [bugfix] for #240, tune autopicker not showing plots for some stations this is probably just a workaround. Why was the program trying to access picks that were removed from the pick-dictionary? --- pylot/core/util/widgets.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 3a4b8ca4..99c13b82 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -2320,7 +2320,10 @@ class TuneAutopicker(QWidget): def get_current_event_autopicks(self, station): event = self.get_current_event() if event.pylot_autopicks: - return event.pylot_autopicks[station] + if station in event.pylot_autopicks: + return event.pylot_autopicks[station] + else: + return def get_current_station(self): return str(self.stationBox.currentText()).split('.')[-1]