summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/qa_throttle.py
diff options
context:
space:
mode:
authorMarcus Müller <marcus@hostalia.de>2020-06-19 11:07:54 +0200
committerMarcus Müller <marcus@hostalia.de>2020-06-19 11:07:54 +0200
commite76d04ca2f4f15e3b1a1ab2a81dd52c4e6d2472c (patch)
tree1d86f68fceed9cd7204d9a79e816dc06c15feaf4 /gr-blocks/python/blocks/qa_throttle.py
parent98348e37209aa7daeb96fe5ead815e5b083dc6da (diff)
parent39311758cb1e6a7424d3213b3eb2c65c8c4dcfe1 (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_throttle.py')
-rw-r--r--gr-blocks/python/blocks/qa_throttle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/python/blocks/qa_throttle.py b/gr-blocks/python/blocks/qa_throttle.py
index 88495c9cc3..e6d3212cbe 100644
--- a/gr-blocks/python/blocks/qa_throttle.py
+++ b/gr-blocks/python/blocks/qa_throttle.py
@@ -23,7 +23,7 @@ class test_throttle(gr_unittest.TestCase):
self.tb = None
def test_throttling(self):
- src_data = (1, 2, 3)
+ src_data = [1, 2, 3]
src = blocks.vector_source_c(src_data)
thr = blocks.throttle(gr.sizeof_gr_complex, 10)
dst = blocks.vector_sink_c()
@@ -41,7 +41,7 @@ class test_throttle(gr_unittest.TestCase):
self.assertEqual(src_data, dst_data)
def test_rx_rate_tag(self):
- src_data = (1, 2, 3, 4, 5, 6)
+ src_data = [1, 2, 3, 4, 5, 6]
tag = gr.tag_t()
tag.key = pmt.string_to_symbol("rx_rate")
tag.value = pmt.to_pmt(20)