From 720cabb22016d5fa02e17e2c5b84be5587b07ada Mon Sep 17 00:00:00 2001 From: Tom Rondeau <tom@trondeau.com> Date: Wed, 21 Aug 2013 11:12:04 -0400 Subject: ctrlport: only convert strings to bytes for probe2_b data. --- gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 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 44bfce5358..78b83c2411 100644 --- a/gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py +++ b/gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py @@ -447,7 +447,7 @@ class GrDataPlotterValueTable: # If it's a byte stream, Python thinks it's a string. # Unpack and convert to floats for plotting. # Ignore the edge list knob if it's being exported - elif(type(v) == str and itemKey.find('edge list') == -1): + elif(type(v) == str and itemKey.find('probe2_b') == 0): v = struct.unpack(len(v)*'b', v) # Convert the final value to a string for displaying @@ -473,7 +473,7 @@ class GrDataPlotterValueTable: # If it's a byte stream, Python thinks it's a string. # Unpack and convert to floats for plotting. # Ignore the edge list knob if it's being exported - elif(type(v) == str and k.find('edge list') == -1): + elif(type(v) == str and k.find('probe2_b') == 0): v = struct.unpack(len(v)*'b', v) item = QtGui.QTreeWidgetItem([k, str(v), -- cgit v1.2.3