From d7418d2b30600a19f9c65c393a05dfd328811e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Thu, 27 Oct 2016 16:17:21 +0200 Subject: [PATCH] Fixed oversight --- pylot/core/analysis/magnitude.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/analysis/magnitude.py b/pylot/core/analysis/magnitude.py index 6c91c627..f3dc5a3e 100644 --- a/pylot/core/analysis/magnitude.py +++ b/pylot/core/analysis/magnitude.py @@ -459,7 +459,7 @@ def calcsourcespec(wfstream, onset, vp, delta, azimuth, incidence, "no rotation of components possible!") # instead, use component 3 ldat = LQT.select(component="3") - if len(ldat == 0: + if len(ldat) == 0: # maybe component z available ldat = LQT.select(component="Z")