summaryrefslogtreecommitdiff
path: root/gr-fec
diff options
context:
space:
mode:
authortracierenea <tracie.perez@mavs.uta.edu>2016-04-05 17:56:09 -0500
committertracierenea <tracie.perez@mavs.uta.edu>2016-04-05 17:56:09 -0500
commit1adad2911c95f66b4a10ca00d0985119c4f4720e (patch)
tree3fde45b445510a6d370f2f0738164c1db4bf1dff /gr-fec
parentaef116e28d02a39a7e30e937574cb35876c15b5b (diff)
gr-fec: LDPC python function - addressing an "undefined" error
Adding verbosity as an argument to this function, to address this error: File "/home/tracie/pybombs/src/gnuradio/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py", line 478, in inv_mod2 if verbose: NameError: global name 'verbose' is not defined
Diffstat (limited to 'gr-fec')
-rw-r--r--gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py b/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py
index 28eb5d1b7b..c665e9ec6a 100644
--- a/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py
+++ b/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py
@@ -432,7 +432,7 @@ def greedy_upper_triangulation(H, verbose=0):
if verbose:
print '--- Error: nonsingular phi matrix not found.'
-def inv_mod2(squareMatrix):
+def inv_mod2(squareMatrix, verbose=0):
"""
Calculates the mod 2 inverse of a matrix.
"""