diff options
author | mleech | 2007-12-10 22:09:40 +0000 |
---|---|---|
committer | mleech | 2007-12-10 22:09:40 +0000 |
commit | d4479396da276fe7e7dfe9b904522b076bde0d9b (patch) | |
tree | bb171aac523400f8f83fb61961a9450437e5b013 /gr-radio-astronomy/src/python | |
parent | e6b44c657f43ed84ac2889bac48ef24ca3bfe7e7 (diff) | |
download | gnuradio-d4479396da276fe7e7dfe9b904522b076bde0d9b.tar.gz gnuradio-d4479396da276fe7e7dfe9b904522b076bde0d9b.tar.bz2 gnuradio-d4479396da276fe7e7dfe9b904522b076bde0d9b.zip |
Updated to numpy.fft from Numeric.FFT
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7100 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-radio-astronomy/src/python')
-rwxr-xr-x | gr-radio-astronomy/src/python/usrp_psr_receiver.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gr-radio-astronomy/src/python/usrp_psr_receiver.py b/gr-radio-astronomy/src/python/usrp_psr_receiver.py index 3937cb5ae..6b430be6c 100755 --- a/gr-radio-astronomy/src/python/usrp_psr_receiver.py +++ b/gr-radio-astronomy/src/python/usrp_psr_receiver.py @@ -39,7 +39,7 @@ from optparse import OptionParser import wx import sys import Numeric -import FFT +import numpy.fft import ephem import time import os @@ -342,6 +342,7 @@ class app_flow_graph(stdgui2.std_top_block): # # Audio sink # + print "input_rate ", second_input_rate, "audiodev ", self.audiodev self.audio = audio.sink(second_input_rate, self.audiodev) # @@ -1057,7 +1058,7 @@ class app_flow_graph(stdgui2.std_top_block): 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) # |