commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r9876 - gnuradio/trunk/gnuradio-core/src/python/gnurad


From: jcorgan
Subject: [Commit-gnuradio] r9876 - gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr
Date: Mon, 27 Oct 2008 09:53:31 -0600 (MDT)

Author: jcorgan
Date: 2008-10-27 09:53:31 -0600 (Mon, 27 Oct 2008)
New Revision: 9876

Modified:
   gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_classify.py
Log:
Added copyright header and disabled test_004, as it requires pygsl, which is 
not checked for in configure

Modified: gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_classify.py
===================================================================
--- gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_classify.py  
2008-10-27 15:50:35 UTC (rev 9875)
+++ gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_classify.py  
2008-10-27 15:53:31 UTC (rev 9876)
@@ -1,9 +1,29 @@
 #!/usr/bin/env python
+#
+# Copyright 2008 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.
+# 
 
 import numpy
 from gnuradio import gr, gr_unittest
 import copy
-import pygsl.wavelet as wavelet
+#import pygsl.wavelet as wavelet # FIXME: pygsl not checked for in config
 import math
 
 
@@ -99,34 +119,34 @@
         sum /= float(len(src_data))
         assert sum < 1e-6
 
-    def test_004_(self):
+#    def test_004_(self): # FIXME: requires pygsl
+#
+#        n = 256
+#        o = 4
+#        ws = wavelet.workspace(n)
+#        w = wavelet.daubechies(o)
+#
+#        a = numpy.arange(n)
+#        b = numpy.sin(a*numpy.pi/16.0)
+#        c = w.transform_forward(b, ws)
+#        d = w.transform_inverse(c, ws)
+#
+#        src = gr.vector_source_f(b, False, n)
+#        wv = gr.wavelet_ff(n, o, True)
+#
+#        dst = gr.vector_sink_f(n)
+#        self.tb.connect(src, wv)
+#        self.tb.connect(wv, dst)
+#        self.tb.run()
+#        e = dst.data()
+#
+#        sum = 0
+#        for (u, v) in zip(c, e):
+#            w = u - v
+#            sum += w * w
+#        sum /= float(len(c))
+#        assert sum < 1e-6
 
-        n = 256
-        o = 4
-        ws = wavelet.workspace(n)
-        w = wavelet.daubechies(o)
-
-        a = numpy.arange(n)
-        b = numpy.sin(a*numpy.pi/16.0)
-        c = w.transform_forward(b, ws)
-        d = w.transform_inverse(c, ws)
-
-        src = gr.vector_source_f(b, False, n)
-        wv = gr.wavelet_ff(n, o, True)
-
-        dst = gr.vector_sink_f(n)
-        self.tb.connect(src, wv)
-        self.tb.connect(wv, dst)
-        self.tb.run()
-        e = dst.data()
-
-        sum = 0
-        for (u, v) in zip(c, e):
-            w = u - v
-            sum += w * w
-        sum /= float(len(c))
-        assert sum < 1e-6
-
     def test_005_(self):
 
         src_data = (1.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]