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/ctrlport/GrDataPlotter.py | |
parent | 631dd648e49da20df1f0fb825037ff28460f03a1 (diff) |
ctrlport: only convert strings to bytes for probe2_b data.
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py | 4 |
1 files changed, 2 insertions, 2 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), |