summaryrefslogtreecommitdiff
path: root/gr-fec/python/fec/polar/helper_functions.py
diff options
context:
space:
mode:
authorJosh Morman <jmorman@gnuradio.org>2021-11-24 12:32:44 -0500
committermormj <34754695+mormj@users.noreply.github.com>2021-11-24 14:41:53 -0500
commitc747e37751546159f30a2a1296dc4099fe132a53 (patch)
tree9b1b9851c9c98d1a0082cac5a65ba9439e5db776 /gr-fec/python/fec/polar/helper_functions.py
parent3cecf9268b15bb0e9e2fedaeb2528bd3038beee6 (diff)
fec: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gr-fec/python/fec/polar/helper_functions.py')
-rw-r--r--gr-fec/python/fec/polar/helper_functions.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/gr-fec/python/fec/polar/helper_functions.py b/gr-fec/python/fec/polar/helper_functions.py
index 357bccd5b2..bcddfb83c9 100644
--- a/gr-fec/python/fec/polar/helper_functions.py
+++ b/gr-fec/python/fec/polar/helper_functions.py
@@ -8,7 +8,8 @@
import numpy as np
-import time, sys
+import time
+import sys
import copy
@@ -125,8 +126,8 @@ def show_progress_bar(ndone, ntotal):
percentage = 100. * fract
ndone_chars = int(nchars * fract)
nundone_chars = nchars - ndone_chars
- sys.stdout.write('\r[{0}{1}] {2:5.2f}% ({3} / {4})'.format('=' * ndone_chars, ' ' * nundone_chars, percentage, ndone, ntotal))
-
+ sys.stdout.write('\r[{0}{1}] {2:5.2f}% ({3} / {4})'.format('=' *
+ ndone_chars, ' ' * nundone_chars, percentage, ndone, ntotal))
def mutual_information(w):
@@ -173,7 +174,6 @@ def main():
n = 6
m = 2 ** n
-
pos = np.arange(m)
rev_pos = bit_reverse_vector(pos, n)
print(pos)
@@ -190,6 +190,5 @@ def main():
print(a)
-
if __name__ == '__main__':
main()