diff options
author | mormj <mormjb@gmail.com> | 2020-10-30 10:59:50 -0400 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-10-30 17:52:53 +0100 |
commit | 7a0948ba85758fba1cc3858ef99bfa600dcc7416 (patch) | |
tree | 610d7f9d773a193562def6df2d4b50f1bb3b3f86 /gr-blocks/python/blocks/qa_mute.py | |
parent | 12192ee7d58de95ddca35a3e93bfc172bdb5c820 (diff) |
qa: run autopep8 formatting on qa python files
find ./ -iname qa*.py | xargs autopep8 --in-place -a -a
mostly formats whitespace and gets rid of trailing semicolons
Diffstat (limited to 'gr-blocks/python/blocks/qa_mute.py')
-rw-r--r-- | gr-blocks/python/blocks/qa_mute.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gr-blocks/python/blocks/qa_mute.py b/gr-blocks/python/blocks/qa_mute.py index ae789f1a13..e5aaf76798 100644 --- a/gr-blocks/python/blocks/qa_mute.py +++ b/gr-blocks/python/blocks/qa_mute.py @@ -11,6 +11,7 @@ from gnuradio import gr, gr_unittest, blocks + class test_mute(gr_unittest.TestCase): def setUp(self): @@ -62,16 +63,17 @@ class test_mute(gr_unittest.TestCase): 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) + if __name__ == '__main__': gr_unittest.run(test_mute) |