summaryrefslogtreecommitdiff
path: root/gr-wxgui/src/python/waterfallsink2.py
diff options
context:
space:
mode:
authorjcorgan2007-05-28 17:04:09 +0000
committerjcorgan2007-05-28 17:04:09 +0000
commit9880e7bb383054aa43681b52ebd33c8fd4cb8fcb (patch)
treec9cd097baefda9ec392da2944fb799cbffabaa40 /gr-wxgui/src/python/waterfallsink2.py
parentf29776e2c39c06c958e7b4dfeae8883b47305969 (diff)
downloadgnuradio-9880e7bb383054aa43681b52ebd33c8fd4cb8fcb.tar.gz
gnuradio-9880e7bb383054aa43681b52ebd33c8fd4cb8fcb.tar.bz2
gnuradio-9880e7bb383054aa43681b52ebd33c8fd4cb8fcb.zip
Merged r5547:5542 from jcorgan/num into trunk. Converts from using Python Numeric to numpy. Trunk passes distcheck. gr-radio-astronomy still needs conversion.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5553 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-wxgui/src/python/waterfallsink2.py')
-rwxr-xr-xgr-wxgui/src/python/waterfallsink2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-wxgui/src/python/waterfallsink2.py b/gr-wxgui/src/python/waterfallsink2.py
index cd4cc75da..ea041d003 100755
--- a/gr-wxgui/src/python/waterfallsink2.py
+++ b/gr-wxgui/src/python/waterfallsink2.py
@@ -24,7 +24,7 @@ from gnuradio import gr, gru, window
from gnuradio.wxgui import stdgui2
import wx
import gnuradio.wxgui.plot as plot
-import Numeric
+import numpy
import os
import threading
import math
@@ -174,7 +174,7 @@ class input_watcher (threading.Thread):
start = itemsize * (nitems - 1)
s = s[start:start+itemsize]
- complex_data = Numeric.fromstring (s, Numeric.Float32)
+ complex_data = numpy.fromstring (s, numpy.float32)
de = DataEvent (complex_data)
wx.PostEvent (self.event_receiver, de)
del de