[bugfix] do not continue calculation without given data

This commit is contained in:
Sebastian Wehling-Benatelli 2016-09-19 11:34:03 +02:00
parent 5155efc710
commit 8ee515e79f

View File

@ -991,6 +991,8 @@ class MainWindow(QMainWindow):
pick = a.pick_id.get_referred_object() pick = a.pick_id.get_referred_object()
station = pick.waveform_id.station_code station = pick.waveform_id.station_code
wf = self.get_data().getWFData().select(station=station) wf = self.get_data().getWFData().select(station=station)
if not wf:
continue
onset = pick.time onset = pick.time
dist = degrees2kilometers(a.distance) dist = degrees2kilometers(a.distance)
w0, fc = calcsourcespec(wf, onset, fninv, self.inputs.get('vp'), dist, w0, fc = calcsourcespec(wf, onset, fninv, self.inputs.get('vp'), dist,