diff options
author | Josh Morman <mormjb@gmail.com> | 2020-04-23 08:05:31 -0400 |
---|---|---|
committer | Josh Morman <mormjb@gmail.com> | 2020-06-04 10:05:47 -0400 |
commit | 8714e249cdfeb1da4405c35ecc8ab718e4e7dcc6 (patch) | |
tree | ba54f56c0f9951855ddade5f426ad34c9efb0ce0 /gr-blocks/python/blocks/qa_mute.py | |
parent | 2aaa3593989a709911a83aa4890a8f6a22c484f3 (diff) |
blocks: add pybind11 bindings
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) |