summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2015-02-23 11:10:23 -0500
committerTom Rondeau <tom@trondeau.com>2015-04-02 15:38:56 -0700
commit8270b20580b43fd00d1f1c1df14dee1f2a2498ad (patch)
tree47385ae9e4eeab9bfbea1d63594c5e6960196b68 /gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py
parent490fe7fb527f629f6ba8fb804f33a51822e3b8ae (diff)
controlport: more cleanup of python code to help generalize the interface
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py')
-rw-r--r--gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py6
1 files changed, 2 insertions, 4 deletions
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.