From 613800dd1508dcad2c0c98365b8040451c05fa48 Mon Sep 17 00:00:00 2001 From: "J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F" Date: Wed, 12 Feb 2020 12:36:46 +0100 Subject: [PATCH 1/2] Commented out tracerplus on siggen --- lasp/c/lasp_siggen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lasp/c/lasp_siggen.c b/lasp/c/lasp_siggen.c index ee8c0e5..b10e65d 100644 --- a/lasp/c/lasp_siggen.c +++ b/lasp/c/lasp_siggen.c @@ -5,7 +5,7 @@ // Description: // Signal generator implementation ////////////////////////////////////////////////////////////////////// -#define TRACERPLUS (-5) +/* #define TRACERPLUS (-5) */ #include "lasp_siggen.h" #include "lasp_alloc.h" #include "lasp_assert.h" From 895b462bc5a5b521e410e8d66d23ba12bb53dd05 Mon Sep 17 00:00:00 2001 From: "J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F" Date: Fri, 21 Feb 2020 14:41:26 +0100 Subject: [PATCH 2/2] Nominal_txt can now also be called with a list as argument. --- lasp/filter/filterbank_design.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lasp/filter/filterbank_design.py b/lasp/filter/filterbank_design.py index 4b5552d..0a3e3f3 100644 --- a/lasp/filter/filterbank_design.py +++ b/lasp/filter/filterbank_design.py @@ -466,8 +466,14 @@ class ThirdOctaveBankDesigner(FilterBankDesigner): def nominal_txt(self, x): # Put the nominal frequencies in a dictionary for easy access with # x as the key. - index = x - self.xs[0] - return self._nominal_txt[index] + if type(x) == int: + index = x - self.xs[0] + return self._nominal_txt[index] + elif type(x) == list: + index_start = x[0] - self.xs[0] + index_stop = x[-1] - self.xs[0] + return self._nominal_txt[index_start:index_stop+1] + def band_limits(self, x, filter_class=0): """Returns the third octave band filter limits for filter designator x.