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_mute.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_mute.py')
-rw-r--r-- | gr-blocks/python/blocks/qa_mute.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gr-blocks/python/blocks/qa_mute.py b/gr-blocks/python/blocks/qa_mute.py index 3264a38a80..fd72abfe24 100644 --- a/gr-blocks/python/blocks/qa_mute.py +++ b/gr-blocks/python/blocks/qa_mute.py @@ -50,26 +50,26 @@ class test_mute(gr_unittest.TestCase): self.assertEqual(exp_data, result_data) def test_unmute_ii(self): - src_data = (1, 2, 3, 4, 5) - expected_result = (1, 2, 3, 4, 5) + src_data = [1, 2, 3, 4, 5] + expected_result = [1, 2, 3, 4, 5] op = blocks.mute_ii(False) self.help_ii((src_data,), expected_result, op) def test_mute_ii(self): - src_data = (1, 2, 3, 4, 5) - expected_result = (0, 0, 0, 0, 0) + src_data = [1, 2, 3, 4, 5] + expected_result = [0, 0, 0, 0, 0] op = blocks.mute_ii(True) self.help_ii((src_data,), expected_result, op) def test_unmute_cc(self): - src_data = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j) - expected_result = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j) + src_data = [1+5j, 2+5j, 3+5j, 4+5j, 5+5j] + expected_result = [1+5j, 2+5j, 3+5j, 4+5j, 5+5j] op = blocks.mute_cc(False) self.help_cc((src_data,), expected_result, op) def test_unmute_cc(self): - src_data = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j) - expected_result =(0+0j, 0+0j, 0+0j, 0+0j, 0+0j) + src_data = [1+5j, 2+5j, 3+5j, 4+5j, 5+5j] + expected_result =[0+0j, 0+0j, 0+0j, 0+0j, 0+0j] op = blocks.mute_cc(True) self.help_cc((src_data,), expected_result, op) |