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-digital/python/digital/qa_diff_phasor_cc.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-digital/python/digital/qa_diff_phasor_cc.py')
-rw-r--r-- | gr-digital/python/digital/qa_diff_phasor_cc.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gr-digital/python/digital/qa_diff_phasor_cc.py b/gr-digital/python/digital/qa_diff_phasor_cc.py index 4c018087e3..7a6ff569f8 100644 --- a/gr-digital/python/digital/qa_diff_phasor_cc.py +++ b/gr-digital/python/digital/qa_diff_phasor_cc.py @@ -11,6 +11,7 @@ from gnuradio import gr, gr_unittest, digital, blocks + class test_diff_phasor(gr_unittest.TestCase): def setUp(self): @@ -20,8 +21,9 @@ class test_diff_phasor(gr_unittest.TestCase): self.tb = None def test_diff_phasor_cc(self): - src_data = (0+0j, 1+0j, -1+0j, 3+4j, -3-4j, -3+4j) - expected_result = (0+0j, 0+0j, -1+0j, -3-4j, -25+0j, -7-24j) + src_data = (0 + 0j, 1 + 0j, -1 + 0j, 3 + 4j, -3 - 4j, -3 + 4j) + expected_result = (0 + 0j, 0 + 0j, -1 + 0j, - + 3 - 4j, -25 + 0j, -7 - 24j) src = blocks.vector_source_c(src_data) op = digital.diff_phasor_cc() dst = blocks.vector_sink_c() @@ -31,6 +33,6 @@ class test_diff_phasor(gr_unittest.TestCase): actual_result = dst.data() # fetch the contents of the sink self.assertComplexTuplesAlmostEqual(expected_result, actual_result) + if __name__ == '__main__': gr_unittest.run(test_diff_phasor) - |