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-analog/python/analog/qa_pwr_squelch.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-analog/python/analog/qa_pwr_squelch.py')
-rw-r--r-- | gr-analog/python/analog/qa_pwr_squelch.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-analog/python/analog/qa_pwr_squelch.py b/gr-analog/python/analog/qa_pwr_squelch.py index 2ef4e9938f..81ecd7edd4 100644 --- a/gr-analog/python/analog/qa_pwr_squelch.py +++ b/gr-analog/python/analog/qa_pwr_squelch.py @@ -11,6 +11,7 @@ from gnuradio import gr, gr_unittest, analog, blocks + class test_pwr_squelch(gr_unittest.TestCase): def setUp(self): @@ -60,7 +61,7 @@ class test_pwr_squelch(gr_unittest.TestCase): self.tb.run() expected_result = src_data - expected_result[0:20] = 20*[0,] + expected_result[0:20] = 20 * [0, ] result_data = dst.data() self.assertComplexTuplesAlmostEqual(expected_result, result_data, 4) @@ -91,7 +92,6 @@ class test_pwr_squelch(gr_unittest.TestCase): g = op.gate() self.assertEqual(gate2, g) - def test_pwr_squelch_004(self): alpha = 0.0001 thr = -25 @@ -106,11 +106,11 @@ class test_pwr_squelch(gr_unittest.TestCase): self.tb.run() expected_result = src_data - expected_result[0:20] = 20*[0,] + expected_result[0:20] = 20 * [0, ] result_data = dst.data() self.assertFloatTuplesAlmostEqual(expected_result, result_data, 4) + if __name__ == '__main__': gr_unittest.run(test_pwr_squelch) - |