summaryrefslogtreecommitdiff
path: root/gr-blocks
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks')
-rwxr-xr-xgr-blocks/python/qa_packed_to_unpacked.py56
1 files changed, 28 insertions, 28 deletions
diff --git a/gr-blocks/python/qa_packed_to_unpacked.py b/gr-blocks/python/qa_packed_to_unpacked.py
index 98a02e78f..d84f5dbd3 100755
--- a/gr-blocks/python/qa_packed_to_unpacked.py
+++ b/gr-blocks/python/qa_packed_to_unpacked.py
@@ -62,7 +62,7 @@ class test_packing(gr_unittest.TestCase):
src_data = (0x11,)
expected_results = (4, 2)
src = gr.vector_source_b(src_data, False)
- op = gr.packed_to_unpacked_bb(3, gr.GR_LSB_FIRST)
+ op = blocks.packed_to_unpacked_bb(3, gr.GR_LSB_FIRST)
dst = gr.vector_sink_b()
self.tb.connect(src, op)
@@ -75,7 +75,7 @@ class test_packing(gr_unittest.TestCase):
src_data = (0x11,)
expected_results = (0, 4)
src = gr.vector_source_b(src_data, False)
- op = gr.packed_to_unpacked_bb(3, gr.GR_MSB_FIRST)
+ op = blocks.packed_to_unpacked_bb(3, gr.GR_MSB_FIRST)
dst = gr.vector_sink_b()
self.tb.connect(src, op)
@@ -88,7 +88,7 @@ class test_packing(gr_unittest.TestCase):
src_data = (1,0,0,0,0,0,1,0,0,1,0,1,1,0,1,0)
expected_results = (0x82, 0x5a)
src = gr.vector_source_b(src_data, False)
- op = gr.unpacked_to_packed_bb(1, gr.GR_MSB_FIRST)
+ op = blocks.unpacked_to_packed_bb(1, gr.GR_MSB_FIRST)
dst = gr.vector_sink_b()
self.tb.connect(src, op)
@@ -101,7 +101,7 @@ class test_packing(gr_unittest.TestCase):
src_data = (0,1,0,0,0,0,0,1,0,1,0,1,1,0,1,0)
expected_results = (0x82, 0x5a)
src = gr.vector_source_b(src_data, False)
- op = gr.unpacked_to_packed_bb(1, gr.GR_LSB_FIRST)
+ op = blocks.unpacked_to_packed_bb(1, gr.GR_LSB_FIRST)
dst = gr.vector_sink_b()
self.tb.connect(src, op)
@@ -114,7 +114,7 @@ class test_packing(gr_unittest.TestCase):
src_data = (4, 2, 0,0,0)
expected_results = (0x11,)
src = gr.vector_source_b(src_data, False)
- op = gr.unpacked_to_packed_bb(3, gr.GR_LSB_FIRST)
+ op = blocks.unpacked_to_packed_bb(3, gr.GR_LSB_FIRST)
dst = gr.vector_sink_b()
self.tb.connect(src, op)
@@ -127,7 +127,7 @@ class test_packing(gr_unittest.TestCase):
src_data = (0, 4, 2,0,0)
expected_results = (0x11,)
src = gr.vector_source_b(src_data,False)
- op = gr.unpacked_to_packed_bb(3, gr.GR_MSB_FIRST)
+ op = blocks.unpacked_to_packed_bb(3, gr.GR_MSB_FIRST)
dst = gr.vector_sink_b()
self.tb.connect(src, op)
@@ -145,8 +145,8 @@ class test_packing(gr_unittest.TestCase):
expected_results = src_data
src = gr.vector_source_b(tuple(src_data), False)
- op1 = gr.packed_to_unpacked_bb(3, gr.GR_MSB_FIRST)
- op2 = gr.unpacked_to_packed_bb(3, gr.GR_MSB_FIRST)
+ op1 = blocks.packed_to_unpacked_bb(3, gr.GR_MSB_FIRST)
+ op2 = blocks.unpacked_to_packed_bb(3, gr.GR_MSB_FIRST)
dst = gr.vector_sink_b()
self.tb.connect(src, op1, op2)
@@ -163,8 +163,8 @@ class test_packing(gr_unittest.TestCase):
src_data = tuple(src_data)
expected_results = src_data
src = gr.vector_source_b(tuple(src_data), False)
- op1 = gr.packed_to_unpacked_bb(7, gr.GR_MSB_FIRST)
- op2 = gr.unpacked_to_packed_bb(7, gr.GR_MSB_FIRST)
+ op1 = blocks.packed_to_unpacked_bb(7, gr.GR_MSB_FIRST)
+ op2 = blocks.unpacked_to_packed_bb(7, gr.GR_MSB_FIRST)
dst = gr.vector_sink_b()
self.tb.connect(src, op1, op2)
@@ -181,8 +181,8 @@ class test_packing(gr_unittest.TestCase):
src_data = tuple(src_data)
expected_results = src_data
src = gr.vector_source_b(tuple(src_data),False)
- op1 = gr.packed_to_unpacked_bb(7, gr.GR_LSB_FIRST)
- op2 = gr.unpacked_to_packed_bb(7, gr.GR_LSB_FIRST)
+ op1 = blocks.packed_to_unpacked_bb(7, gr.GR_LSB_FIRST)
+ op2 = blocks.unpacked_to_packed_bb(7, gr.GR_LSB_FIRST)
dst = gr.vector_sink_b()
self.tb.connect(src, op1, op2)
@@ -201,8 +201,8 @@ class test_packing(gr_unittest.TestCase):
src_data = tuple(src_data)
expected_results = src_data
src = gr.vector_source_s(tuple(src_data), False)
- op1 = gr.packed_to_unpacked_ss(1, gr.GR_MSB_FIRST)
- op2 = gr.unpacked_to_packed_ss(1, gr.GR_MSB_FIRST)
+ op1 = blocks.packed_to_unpacked_ss(1, gr.GR_MSB_FIRST)
+ op2 = blocks.unpacked_to_packed_ss(1, gr.GR_MSB_FIRST)
dst = gr.vector_sink_s()
self.tb.connect(src, op1, op2)
@@ -219,8 +219,8 @@ class test_packing(gr_unittest.TestCase):
src_data = tuple(src_data)
expected_results = src_data
src = gr.vector_source_s(tuple(src_data), False)
- op1 = gr.packed_to_unpacked_ss(1, gr.GR_LSB_FIRST)
- op2 = gr.unpacked_to_packed_ss(1, gr.GR_LSB_FIRST)
+ op1 = blocks.packed_to_unpacked_ss(1, gr.GR_LSB_FIRST)
+ op2 = blocks.unpacked_to_packed_ss(1, gr.GR_LSB_FIRST)
dst = gr.vector_sink_s()
self.tb.connect(src, op1, op2)
@@ -237,8 +237,8 @@ class test_packing(gr_unittest.TestCase):
src_data = tuple(src_data)
expected_results = src_data
src = gr.vector_source_s(tuple(src_data), False)
- op1 = gr.packed_to_unpacked_ss(8, gr.GR_MSB_FIRST)
- op2 = gr.unpacked_to_packed_ss(8, gr.GR_MSB_FIRST)
+ op1 = blocks.packed_to_unpacked_ss(8, gr.GR_MSB_FIRST)
+ op2 = blocks.unpacked_to_packed_ss(8, gr.GR_MSB_FIRST)
dst = gr.vector_sink_s()
self.tb.connect(src, op1, op2)
@@ -255,8 +255,8 @@ class test_packing(gr_unittest.TestCase):
src_data = tuple(src_data)
expected_results = src_data
src = gr.vector_source_s(tuple(src_data), False)
- op1 = gr.packed_to_unpacked_ss(8, gr.GR_LSB_FIRST)
- op2 = gr.unpacked_to_packed_ss(8, gr.GR_LSB_FIRST)
+ op1 = blocks.packed_to_unpacked_ss(8, gr.GR_LSB_FIRST)
+ op2 = blocks.unpacked_to_packed_ss(8, gr.GR_LSB_FIRST)
dst = gr.vector_sink_s()
self.tb.connect(src, op1, op2)
@@ -275,8 +275,8 @@ class test_packing(gr_unittest.TestCase):
src_data = tuple(src_data)
expected_results = src_data
src = gr.vector_source_i(tuple(src_data), False)
- op1 = gr.packed_to_unpacked_ii(1, gr.GR_MSB_FIRST)
- op2 = gr.unpacked_to_packed_ii(1, gr.GR_MSB_FIRST)
+ op1 = blocks.packed_to_unpacked_ii(1, gr.GR_MSB_FIRST)
+ op2 = blocks.unpacked_to_packed_ii(1, gr.GR_MSB_FIRST)
dst = gr.vector_sink_i()
self.tb.connect(src, op1, op2)
@@ -293,8 +293,8 @@ class test_packing(gr_unittest.TestCase):
src_data = tuple(src_data)
expected_results = src_data
src = gr.vector_source_i(tuple(src_data), False)
- op1 = gr.packed_to_unpacked_ii(1, gr.GR_LSB_FIRST)
- op2 = gr.unpacked_to_packed_ii(1, gr.GR_LSB_FIRST)
+ op1 = blocks.packed_to_unpacked_ii(1, gr.GR_LSB_FIRST)
+ op2 = blocks.unpacked_to_packed_ii(1, gr.GR_LSB_FIRST)
dst = gr.vector_sink_i()
self.tb.connect(src, op1, op2)
@@ -311,8 +311,8 @@ class test_packing(gr_unittest.TestCase):
src_data = tuple(src_data)
expected_results = src_data
src = gr.vector_source_i(tuple(src_data), False)
- op1 = gr.packed_to_unpacked_ii(8, gr.GR_MSB_FIRST)
- op2 = gr.unpacked_to_packed_ii(8, gr.GR_MSB_FIRST)
+ op1 = blocks.packed_to_unpacked_ii(8, gr.GR_MSB_FIRST)
+ op2 = blocks.unpacked_to_packed_ii(8, gr.GR_MSB_FIRST)
dst = gr.vector_sink_i()
self.tb.connect(src, op1, op2)
@@ -329,8 +329,8 @@ class test_packing(gr_unittest.TestCase):
src_data = tuple(src_data)
expected_results = src_data
src = gr.vector_source_i(tuple(src_data), False)
- op1 = gr.packed_to_unpacked_ii(8, gr.GR_LSB_FIRST)
- op2 = gr.unpacked_to_packed_ii(8, gr.GR_LSB_FIRST)
+ op1 = blocks.packed_to_unpacked_ii(8, gr.GR_LSB_FIRST)
+ op2 = blocks.unpacked_to_packed_ii(8, gr.GR_LSB_FIRST)
dst = gr.vector_sink_i()
self.tb.connect(src, op1, op2)