[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?
This commit is contained in:
Darius Arnold 2017-08-27 17:51:04 +02:00
parent bb54f2843e
commit f65b5efe41

View File

@ -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]