[bugfix] do not continue calculation without given data
This commit is contained in:
parent
5155efc710
commit
8ee515e79f
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user