From 20f25feba6a4e9fc16289041068242d44ed7cf42 Mon Sep 17 00:00:00 2001 From: Bob Iannucci <bob@sv.cmu.edu> Date: Wed, 4 Jan 2017 14:45:49 -0800 Subject: 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(-) (limited to 'gnuradio-runtime/python/pmt') 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)) -- cgit v1.2.3