summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/python
diff options
context:
space:
mode:
authorjcorgan2007-03-14 22:49:45 +0000
committerjcorgan2007-03-14 22:49:45 +0000
commit75f9f9c4373fe6ec5e88045151614c3ff3ad983e (patch)
tree0e1dc13579c4db5705d84057de27f15ebb0a6575 /gnuradio-core/src/python
parent6bbda4eb07df7091f5e8d2cadc4635bab9f616db (diff)
downloadgnuradio-75f9f9c4373fe6ec5e88045151614c3ff3ad983e.tar.gz
gnuradio-75f9f9c4373fe6ec5e88045151614c3ff3ad983e.tar.bz2
gnuradio-75f9f9c4373fe6ec5e88045151614c3ff3ad983e.zip
Merged r4750:4755 from jcorgan/frac into trunk. Adds gr_fractional_interpolator_ff and _cc. Passes distcheck.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4756 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/python')
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/Makefile.am1
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_fractional_interpolator.py39
2 files changed, 40 insertions, 0 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/Makefile.am b/gnuradio-core/src/python/gnuradio/gr/Makefile.am
index 339fb81dd..3969a28fd 100644
--- a/gnuradio-core/src/python/gnuradio/gr/Makefile.am
+++ b/gnuradio-core/src/python/gnuradio/gr/Makefile.am
@@ -60,6 +60,7 @@ noinst_PYTHON = \
qa_fft_filter.py \
qa_filter_delay_fc.py \
qa_flow_graph.py \
+ qa_fractional_interpolator.py \
qa_frequency_modulator.py \
qa_fsk_stuff.py \
qa_goertzel.py \
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_fractional_interpolator.py b/gnuradio-core/src/python/gnuradio/gr/qa_fractional_interpolator.py
new file mode 100755
index 000000000..afeebb55b
--- /dev/null
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_fractional_interpolator.py
@@ -0,0 +1,39 @@
+#!/usr/bin/env python
+#
+# Copyright 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 2, 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_fractional_resampler (gr_unittest.TestCase):
+
+ def setUp(self):
+ self.fg = gr.flow_graph()
+
+ def tearDown(self):
+ self.fg = None
+
+ def test_000_make(self):
+ op = gr.fractional_interpolator_ff(0.0, 1.0)
+ op2 = gr.fractional_interpolator_cc(0.0, 1.0)
+
+if __name__ == '__main__':
+ gr_unittest.main()
+