commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 08/11: runtime: fix numpy warning


From: git
Subject: [Commit-gnuradio] [gnuradio] 08/11: runtime: fix numpy warning
Date: Thu, 12 Jan 2017 20:33:15 +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 20f25feba6a4e9fc16289041068242d44ed7cf42
Author: Bob Iannucci <address@hidden>
Date:   Wed Jan 4 14:45:49 2017 -0800

    runtime: fix numpy warning
    
    The == operator on Numpy arrays is being redefined to work elementwise.  
Changing the == to 'is' should fix the problem.
---
 gnuradio-runtime/python/pmt/pmt_to_python.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnuradio-runtime/python/pmt/pmt_to_python.py 
b/gnuradio-runtime/python/pmt/pmt_to_python.py
index e08b726..f9000ec 100644
--- a/gnuradio-runtime/python/pmt/pmt_to_python.py
+++ b/gnuradio-runtime/python/pmt/pmt_to_python.py
@@ -130,6 +130,6 @@ def pmt_to_python(p):
 def python_to_pmt(p):
     for python_type, pmt_check, to_python, from_python in type_mappings:
         if python_type is None:
-            if p == None: return from_python(p)
+            if p is None: return from_python(p)
         elif isinstance(p, python_type): return from_python(p)
     raise ValueError("can't convert %s type to pmt (%s)"%(type(p),p))



reply via email to

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