X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnuradio-core%2Fsrc%2Fpython%2Fgnuradio%2Fgr%2Fqa_cma_equalizer.py;h=b1ab8f546a20c4eca925c4cf822efa0b06236ee1;hb=ea29b08aeb54227e6628f655ccfdb96fe4d8c378;hp=6b3e9aa9e378118f822331b1ca86b7aa41292e68;hpb=18a684bf3dc144c48fc4cc6cc72f5070febd8074;p=debian%2Fgnuradio diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_cma_equalizer.py b/gnuradio-core/src/python/gnuradio/gr/qa_cma_equalizer.py index 6b3e9aa9..b1ab8f54 100755 --- a/gnuradio-core/src/python/gnuradio/gr/qa_cma_equalizer.py +++ b/gnuradio-core/src/python/gnuradio/gr/qa_cma_equalizer.py @@ -1,21 +1,41 @@ #!/usr/bin/env python +# +# Copyright 2006,2007 Free Software Foundation, Inc. +# +# This file is part of GNU Radio +# +# GNU Radio is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GNU Radio is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Radio; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, +# Boston, MA 02110-1301, USA. +# from gnuradio import gr, gr_unittest class test_cma_equalizer_fir(gr_unittest.TestCase): def setUp(self): - self.fg = gr.flow_graph() + self.tb = gr.top_block() def tearDown(self): - self.fg = None + self.tb = None def transform(self, src_data): SRC = gr.vector_source_c(src_data, False) EQU = gr.cma_equalizer_cc(4, 1.0, .001) DST = gr.vector_sink_c() - self.fg.connect(SRC, EQU, DST) - self.fg.run() + self.tb.connect(SRC, EQU, DST) + self.tb.run() return DST.data() def test_001_identity(self):