summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/qa_matrix_interleaver.py
diff options
context:
space:
mode:
authorPhilip Balister <philip@balister.org>2021-12-03 06:33:34 -0500
committerGitHub <noreply@github.com>2021-12-03 06:33:34 -0500
commit76cdd1ce10c20d9b67801b23874257aff9616535 (patch)
treef046c0596977025a9517709548d9a02d22d239b3 /gr-blocks/python/blocks/qa_matrix_interleaver.py
parent741522bac4e67c6e22ece3b580abf88c046c446e (diff)
qa: update tests to work with OpenEmbedded
* qa_nlog10.py: Update test to check for equal with one less decimal place. On the qemu machines built with OpenEmbedded, this test failed if the check was 5 decimal places. Relaxing to 4 lets the test pass. The volk routines used in the implementation pass QA already. Signed-off-by: Philip Balister <philip@balister.org> * Update QA tests to import helper routines from blocks. The file metadata QA installs a file in blocks, but imported it directly. Updated init.py to import via blocks. matrix interleaver imported some routines from a py file that was available via blocks. These cretaed issues when you install the qa tests in images to run them outside the build area. Signed-off-by: Philip Balister <philip@balister.org> * python formatting Signed-off-by: Josh Morman <jmorman@gnuradio.org> Co-authored-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gr-blocks/python/blocks/qa_matrix_interleaver.py')
-rwxr-xr-xgr-blocks/python/blocks/qa_matrix_interleaver.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gr-blocks/python/blocks/qa_matrix_interleaver.py b/gr-blocks/python/blocks/qa_matrix_interleaver.py
index 70a9c23559..5db81109b1 100755
--- a/gr-blocks/python/blocks/qa_matrix_interleaver.py
+++ b/gr-blocks/python/blocks/qa_matrix_interleaver.py
@@ -10,7 +10,6 @@
from gnuradio import gr, gr_unittest
from gnuradio import blocks
-from matrix_interleaver import matrix_interleaver
class qa_matrix_interleaver(gr_unittest.TestCase):
@@ -30,7 +29,7 @@ class qa_matrix_interleaver(gr_unittest.TestCase):
expected = cols * list(range(rows))
src = blocks.vector_source_f(vec, False)
- itlv = matrix_interleaver(gr.sizeof_float, rows=rows, cols=cols)
+ itlv = blocks.matrix_interleaver(gr.sizeof_float, rows=rows, cols=cols)
snk = blocks.vector_sink_f()
tb.connect(src, itlv, snk)
@@ -49,7 +48,7 @@ class qa_matrix_interleaver(gr_unittest.TestCase):
expected = rows * list(range(cols))
src = blocks.vector_source_f(vec, False)
- itlv = matrix_interleaver(
+ itlv = blocks.matrix_interleaver(
gr.sizeof_float, rows=rows, cols=cols, deint=True)
snk = blocks.vector_sink_f()