diff options
author | Marcus Müller <marcus@hostalia.de> | 2020-06-19 11:07:54 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-06-19 11:07:54 +0200 |
commit | e76d04ca2f4f15e3b1a1ab2a81dd52c4e6d2472c (patch) | |
tree | 1d86f68fceed9cd7204d9a79e816dc06c15feaf4 /gr-blocks/python/blocks/qa_keep_one_in_n.py | |
parent | 98348e37209aa7daeb96fe5ead815e5b083dc6da (diff) | |
parent | 39311758cb1e6a7424d3213b3eb2c65c8c4dcfe1 (diff) |
Move from SWIG to Pybind11
Goodbye, and thanks for all the fish, SWIG.
Please refer to docs/PYBIND11.md for details on how to deal with Pybind.
Diffstat (limited to 'gr-blocks/python/blocks/qa_keep_one_in_n.py')
-rw-r--r-- | gr-blocks/python/blocks/qa_keep_one_in_n.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-blocks/python/blocks/qa_keep_one_in_n.py b/gr-blocks/python/blocks/qa_keep_one_in_n.py index 6a4c45c0f0..dd9023996b 100644 --- a/gr-blocks/python/blocks/qa_keep_one_in_n.py +++ b/gr-blocks/python/blocks/qa_keep_one_in_n.py @@ -20,9 +20,9 @@ class test_keep_one_in_n(gr_unittest.TestCase): self.tb = None def test_001(self): - src_data = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) - expected_data = (5, 10) - src = blocks.vector_source_b(src_data); + src_data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + expected_data = [5, 10] + src = blocks.vector_source_b(src_data) op = blocks.keep_one_in_n(gr.sizeof_char, 5) dst = blocks.vector_sink_b() self.tb.connect(src, op, dst) |