summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2016-09-08 20:30:36 +0700
committerHarald Welte <laforge@gnumonks.org>2016-10-23 07:38:16 +0000
commit84fc2ce210d57f2d59d2a5c1599d45746c8ffeff (patch)
tree130191ac5fbab5b9b7c3c1f27ede5c6250aaa7bf
parentf3d38c493722b4d3cb6bd5dbd9a30d5681a7cdf2 (diff)
utils/conv_gen.py: fix some typos
Change-Id: I3327b92715744af4ef61496ef0121555d9d24799
-rw-r--r--utils/conv_gen.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/conv_gen.py b/utils/conv_gen.py
index c067104e..865a5ee8 100644
--- a/utils/conv_gen.py
+++ b/utils/conv_gen.py
@@ -39,7 +39,7 @@ class ConvolutionalCode(object):
self.name = name
self.description = description
- # Handle polynoms (and check for recursion)
+ # Handle polynomials (and check for recursion)
self.polys = [(1, 1) if x[0] == x[1] else x for x in polys]
# Determine the polynomial degree
@@ -51,11 +51,11 @@ class ConvolutionalCode(object):
rp = [x[1] for x in self.polys if x[1] != 1]
if rp:
if not all([x == rp[0] for x in rp]):
- raise ValueError("Bad polynoms: "
- "Can't have multiple different divider polynoms!")
+ raise ValueError("Bad polynomials: "
+ "Can't have multiple different divider polynomials!")
if not all([x[0] == 1 for x in polys if x[1] == 1]):
- raise ValueError("Bad polynoms: "
+ raise ValueError("Bad polynomials: "
"Can't have a '1' divider with a non '1' dividend "
"in a recursive code")
@@ -87,7 +87,7 @@ class ConvolutionalCode(object):
src = (ns & 1) | (state << 1)
- # Scan polynoms
+ # Scan polynomials
rv = []
for p_n, p_d in self.polys:
if self.recursive and p_d == 1:
@@ -106,7 +106,7 @@ class ConvolutionalCode(object):
src = (ns & 1) | (state << 1)
- # Scan polynoms
+ # Scan polynomials
rv = []
for p_n, p_d in self.polys:
if self.recursive and p_d == 1: