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_dpll.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_dpll.py')
-rw-r--r-- | gr-analog/python/analog/qa_dpll.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-analog/python/analog/qa_dpll.py b/gr-analog/python/analog/qa_dpll.py index 90b060bd20..627db53f58 100644 --- a/gr-analog/python/analog/qa_dpll.py +++ b/gr-analog/python/analog/qa_dpll.py @@ -11,6 +11,7 @@ from gnuradio import gr, gr_unittest, analog, blocks + class test_dpll_bb(gr_unittest.TestCase): def setUp(self): @@ -33,7 +34,7 @@ class test_dpll_bb(gr_unittest.TestCase): f = op.freq() self.assertEqual(1 / period, f) - d0 = 1.0 - 0.5*f; + d0 = 1.0 - 0.5 * f d1 = op.decision_threshold() self.assertAlmostEqual(d0, d1) @@ -44,7 +45,7 @@ class test_dpll_bb(gr_unittest.TestCase): period = 4 gain = 0.1 - src_data = 10*((period-1)*[0,] + [1,]) + src_data = 10 * ((period - 1) * [0, ] + [1, ]) expected_result = src_data src = blocks.vector_source_b(src_data) @@ -58,6 +59,6 @@ class test_dpll_bb(gr_unittest.TestCase): result_data = dst.data() self.assertComplexTuplesAlmostEqual(expected_result, result_data, 4) + if __name__ == '__main__': gr_unittest.run(test_dpll_bb) - |