From 7d5bfe81074921a1b7608936e03d3cda9a0bf6bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Tue, 8 Aug 2017 10:24:12 +0200 Subject: [PATCH] ilen was referenced before assignment. --- pylot/core/pick/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index f8b1193f..79871665 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -700,6 +700,7 @@ def checksignallength(X, pick, TSNR, minsiglength, nfac, minpercent, iplot=0, fi rms = np.sqrt((np.power(x1, 2) + np.power(x2, 2) + np.power(x3, 2)) / 3) else: x1 = X[0].data + ilen = len(x1) rms = np.sqrt(np.power(2, x1)) t = np.arange(0, ilen / X[0].stats.sampling_rate,