commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r7100 - gnuradio/trunk/gr-radio-astronomy/src/python


From: mleech
Subject: [Commit-gnuradio] r7100 - gnuradio/trunk/gr-radio-astronomy/src/python
Date: Mon, 10 Dec 2007 15:09:40 -0700 (MST)

Author: mleech
Date: 2007-12-10 15:09:40 -0700 (Mon, 10 Dec 2007)
New Revision: 7100

Modified:
   gnuradio/trunk/gr-radio-astronomy/src/python/usrp_psr_receiver.py
Log:
Updated to numpy.fft from Numeric.FFT



Modified: gnuradio/trunk/gr-radio-astronomy/src/python/usrp_psr_receiver.py
===================================================================
--- gnuradio/trunk/gr-radio-astronomy/src/python/usrp_psr_receiver.py   
2007-12-10 22:09:21 UTC (rev 7099)
+++ gnuradio/trunk/gr-radio-astronomy/src/python/usrp_psr_receiver.py   
2007-12-10 22:09:40 UTC (rev 7100)
@@ -39,7 +39,7 @@
 import wx
 import sys
 import Numeric
-import FFT
+import numpy.fft
 import ephem
 import time
 import os
@@ -342,6 +342,7 @@
         #
         # Audio sink
         #
+        print "input_rate ", second_input_rate, "audiodev ", self.audiodev
         self.audio = audio.sink(second_input_rate, self.audiodev)
 
         #
@@ -1057,7 +1058,7 @@
             tmp[i] = complex(math.cos(phi), math.sin(phi))
             n += 1
         
-        self.disp_taps = FFT.inverse_fft(tmp)
+        self.disp_taps = numpy.fft.ifft(tmp)
         return(self.disp_taps)
 
     #





reply via email to

[Prev in Thread] Current Thread [Next in Thread]