From 8ee515e79f32c9888e464f9032b5eb88dd721eeb Mon Sep 17 00:00:00 2001 From: Sebastianw Wehling-Benatelli Date: Mon, 19 Sep 2016 11:34:03 +0200 Subject: [PATCH] [bugfix] do not continue calculation without given data --- QtPyLoT.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/QtPyLoT.py b/QtPyLoT.py index 67ae0ed6..cc4416c2 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -991,6 +991,8 @@ class MainWindow(QMainWindow): pick = a.pick_id.get_referred_object() station = pick.waveform_id.station_code wf = self.get_data().getWFData().select(station=station) + if not wf: + continue onset = pick.time dist = degrees2kilometers(a.distance) w0, fc = calcsourcespec(wf, onset, fninv, self.inputs.get('vp'), dist,