summaryrefslogtreecommitdiff
path: root/gr-fec
diff options
context:
space:
mode:
authortracierenea <tracie.perez@mavs.uta.edu>2016-04-05 17:59:10 -0500
committertracierenea <tracie.perez@mavs.uta.edu>2016-04-05 17:59:10 -0500
commit48f2c2c46ba1969f3ea8fd2a453ceabb4d9bcc8f (patch)
tree5e733f44af05fdb7428c1ead847cc649828e38d7 /gr-fec
parent1adad2911c95f66b4a10ca00d0985119c4f4720e (diff)
gr-fec: LPDC python function - addressing an "undefined" error
Minor fix to address this error: Traceback (most recent call last): File "Generate_LDPC_matrix.py", line 63, in <module> [bestH,g] = get_best_matrix(newH,100) File "/home/tracie/pybombs/src/gnuradio/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py", line 616, in get_best_matrix [betterH, gap, t] NameError: global name 'betterH' 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 c665e9ec6a..62224436fb 100644
--- a/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py
+++ b/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py
@@ -613,7 +613,7 @@ def get_best_matrix(H, numIterations=100, verbose=False):
print 'greedy_upper_triangulation error: ', e
else:
if ret:
- [betterH, gap, t]
+ [betterH, gap, t] = ret
else:
continue