]> git.gag.com Git - debian/gnuradio/blobdiff - gr-wxgui/src/python/waterfallsink2.py
Merged r5547:5542 from jcorgan/num into trunk. Converts from using Python Numeric...
[debian/gnuradio] / gr-wxgui / src / python / waterfallsink2.py
index cd4cc75da14684b0d259e6e9b2202235d08af2cc..ea041d003aa8d9624bf8bfd47545fc946bc15ba2 100755 (executable)
@@ -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