From 91cc02a1a4414a533cea5267c276ced3180ff61c Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 22 Oct 2015 04:04:30 -0700 Subject: [PATCH] update 11 --- lib/planes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/planes.py b/lib/planes.py index 5f005bf..1f51768 100644 --- a/lib/planes.py +++ b/lib/planes.py @@ -27,9 +27,9 @@ def s2z_two(b, a, fc, srate, gain=1): converts s-plane coefficients to z-plane for digital usage. hard-coded for 3 coefficients. """ - if (len(b) < 3): + if len(b) == 2: b = (b[0], b[1], 0) - if (len(a) < 3): + if len(a) == 2: a = (a[0], a[1], 0) w0 = tau*fc/srate cw = np.cos(w0)