X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gr-radio-astronomy%2Fsrc%2Fpython%2Fusrp_psr_receiver.py;fp=gr-radio-astronomy%2Fsrc%2Fpython%2Fusrp_psr_receiver.py;h=6b430be6c77a21050becfdb47eebb0e05991ad0f;hb=d4479396da276fe7e7dfe9b904522b076bde0d9b;hp=3937cb5ae0a5bdfe33cff6124caa6e22bd8ee038;hpb=e6b44c657f43ed84ac2889bac48ef24ca3bfe7e7;p=debian%2Fgnuradio diff --git a/gr-radio-astronomy/src/python/usrp_psr_receiver.py b/gr-radio-astronomy/src/python/usrp_psr_receiver.py index 3937cb5a..6b430be6 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) #