diff options
author | Tom Rondeau | 2011-02-22 12:25:47 -0500 |
---|---|---|
committer | Tom Rondeau | 2011-02-22 15:04:36 -0500 |
commit | c75954de55b6197946a2f166e1dfa8ef902f7b68 (patch) | |
tree | 6d97f23795646aefb969fa5b5e52219da6f87477 /gr-howto-write-a-block/python | |
parent | 501aa52bc54937a1042e2b24c5e637e2122f3afe (diff) | |
download | gnuradio-c75954de55b6197946a2f166e1dfa8ef902f7b68.tar.gz gnuradio-c75954de55b6197946a2f166e1dfa8ef902f7b68.tar.bz2 gnuradio-c75954de55b6197946a2f166e1dfa8ef902f7b68.zip |
howto: I think this is a better fix than the last one. The modules are now imported from gnuradio.
Diffstat (limited to 'gr-howto-write-a-block/python')
-rwxr-xr-x | gr-howto-write-a-block/python/qa_howto.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-howto-write-a-block/python/qa_howto.py b/gr-howto-write-a-block/python/qa_howto.py index 630f57bf4..96bec2c08 100755 --- a/gr-howto-write-a-block/python/qa_howto.py +++ b/gr-howto-write-a-block/python/qa_howto.py @@ -21,7 +21,7 @@ # from gnuradio import gr, gr_unittest -import howto_swig +from gnuradio import howto class qa_howto (gr_unittest.TestCase): @@ -35,7 +35,7 @@ class qa_howto (gr_unittest.TestCase): src_data = (-3, 4, -5.5, 2, 3) expected_result = (9, 16, 30.25, 4, 9) src = gr.vector_source_f (src_data) - sqr = howto_swig.square_ff () + sqr = howto.square_ff () dst = gr.vector_sink_f () self.tb.connect (src, sqr) self.tb.connect (sqr, dst) @@ -47,7 +47,7 @@ class qa_howto (gr_unittest.TestCase): src_data = (-3, 4, -5.5, 2, 3) expected_result = (9, 16, 30.25, 4, 9) src = gr.vector_source_f (src_data) - sqr = howto_swig.square2_ff () + sqr = howto.square2_ff () dst = gr.vector_sink_f () self.tb.connect (src, sqr) self.tb.connect (sqr, dst) |