summaryrefslogtreecommitdiff
path: root/gnuradio-runtime
diff options
context:
space:
mode:
authorBob Iannucci <bob@sv.cmu.edu>2017-01-04 14:45:49 -0800
committerJohnathan Corgan <johnathan@corganlabs.com>2017-01-12 11:49:14 -0800
commit20f25feba6a4e9fc16289041068242d44ed7cf42 (patch)
treef528e029327f57ddf2a3aa54781ecd35e42db520 /gnuradio-runtime
parent11abb5f5e7d63b48258165b9505154ea15686ed8 (diff)
runtime: fix numpy warning
The == operator on Numpy arrays is being redefined to work elementwise. Changing the == to 'is' should fix the problem.
Diffstat (limited to 'gnuradio-runtime')
-rw-r--r--gnuradio-runtime/python/pmt/pmt_to_python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-runtime/python/pmt/pmt_to_python.py b/gnuradio-runtime/python/pmt/pmt_to_python.py
index e08b7265de..f9000ec279 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))