summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/qa_vector_map.py
diff options
context:
space:
mode:
authorJosh Morman <mormjb@gmail.com>2020-04-23 08:05:31 -0400
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:47 -0400
commit8714e249cdfeb1da4405c35ecc8ab718e4e7dcc6 (patch)
treeba54f56c0f9951855ddade5f426ad34c9efb0ce0 /gr-blocks/python/blocks/qa_vector_map.py
parent2aaa3593989a709911a83aa4890a8f6a22c484f3 (diff)
blocks: add pybind11 bindings
Diffstat (limited to 'gr-blocks/python/blocks/qa_vector_map.py')
-rw-r--r--gr-blocks/python/blocks/qa_vector_map.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/gr-blocks/python/blocks/qa_vector_map.py b/gr-blocks/python/blocks/qa_vector_map.py
index 3efc8ea8c0..d73f1c0eea 100644
--- a/gr-blocks/python/blocks/qa_vector_map.py
+++ b/gr-blocks/python/blocks/qa_vector_map.py
@@ -63,12 +63,12 @@ class test_vector_map(gr_unittest.TestCase):
# First (d) is interleaving of a and b.
# Second (e) is interleaving of a and b and c. c is taken in
# chunks of 2 which are reversed.
- A = (1, 2, 3, 4, 5)
- B = (11, 12, 13, 14, 15)
- C = (99, 98, 97, 96, 95, 94, 93, 92, 91, 90)
- expected_D = (1, 11, 2, 12, 3, 13, 4, 14, 5, 15)
- expected_E = (1, 11, 98, 99, 2, 12, 96, 97, 3, 13, 94, 95,
- 4, 14, 92, 93, 5, 15, 90, 91)
+ A = [1, 2, 3, 4, 5]
+ B = [11, 12, 13, 14, 15]
+ C = [99, 98, 97, 96, 95, 94, 93, 92, 91, 90]
+ expected_D = [1, 11, 2, 12, 3, 13, 4, 14, 5, 15]
+ expected_E = [1, 11, 98, 99, 2, 12, 96, 97, 3, 13, 94, 95,
+ 4, 14, 92, 93, 5, 15, 90, 91]
mapping = [[(0, 0), (1, 0)], # mapping to produce D
[(0, 0), (1, 0), (2, 1), (2, 0)], # mapping to produce E
]