commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 02/17: gr-fec: LDPC python function - addre


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/17: gr-fec: LDPC python function - addressing an "undefined" error
Date: Thu, 14 Apr 2016 20:43:01 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 1adad2911c95f66b4a10ca00d0985119c4f4720e
Author: tracierenea <address@hidden>
Date:   Tue Apr 5 17:56:09 2016 -0500

    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
---
 gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 28eb5d1..c665e9e 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.
   """



reply via email to

[Prev in Thread] Current Thread [Next in Thread]