diff options
author | Tom Rondeau <tom@trondeau.com> | 2013-08-21 11:12:04 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2013-08-21 11:12:04 -0400 |
commit | 720cabb22016d5fa02e17e2c5b84be5587b07ada (patch) | |
tree | ecec8ce5cf420a403b96a2fd40425d149b7f0a7d /gnuradio-runtime/python/gnuradio | |
parent | 631dd648e49da20df1f0fb825037ff28460f03a1 (diff) |
ctrlport: only convert strings to bytes for probe2_b data.
Diffstat (limited to 'gnuradio-runtime/python/gnuradio')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py | 4 | ||||
-rwxr-xr-x | gnuradio-runtime/python/gnuradio/ctrlport/gr-ctrlport-monitor | 2 |
2 files changed, 3 insertions, 3 deletions
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), diff --git a/gnuradio-runtime/python/gnuradio/ctrlport/gr-ctrlport-monitor b/gnuradio-runtime/python/gnuradio/ctrlport/gr-ctrlport-monitor index 5f23a3d5c4..b087ad5c71 100755 --- a/gnuradio-runtime/python/gnuradio/ctrlport/gr-ctrlport-monitor +++ b/gnuradio-runtime/python/gnuradio/ctrlport/gr-ctrlport-monitor @@ -310,7 +310,7 @@ class MAINWindow(QtGui.QMainWindow): # If it's a byte stream, Python thinks it's a string. # Unpack and convert to floats for plotting. - if(type(d) == str): + if(type(d) == str and n.find('probe2_b') == 0): d = struct.unpack(len(d)*'b', d) d = [float(di) for di in d] |