From 8270b20580b43fd00d1f1c1df14dee1f2a2498ad Mon Sep 17 00:00:00 2001 From: Tom Rondeau <tom@trondeau.com> Date: Mon, 23 Feb 2015 11:10:23 -0500 Subject: controlport: more cleanup of python code to help generalize the interface --- gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py') diff --git a/gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py b/gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py index 243cc822f7..661705d613 100644 --- a/gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py +++ b/gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py @@ -442,8 +442,7 @@ class GrDataPlotterValueTable: units = str(knobprops[itemKey].units) descr = str(knobprops[itemKey].description) - # TODO: FIX COMPLEX - if False: #if(type(v) == GNURadio.complex): + if(type(v) == GNURadio.complex): v = v.re + v.im*1j # If it's a byte stream, Python thinks it's a string. # Unpack and convert to floats for plotting. @@ -469,8 +468,7 @@ class GrDataPlotterValueTable: for k in knobs.keys(): if k not in foundKeys: v = knobs[k].value - # TODO: Fix Handle of Complex - if False: #if(type(v) == GNURadio.complex): + if(type(v) == GNURadio.complex): v = v.re + v.im*1j # If it's a byte stream, Python thinks it's a string. # Unpack and convert to floats for plotting. -- cgit v1.2.3