diff options
author | jblum | 2009-07-17 00:36:11 +0000 |
---|---|---|
committer | jblum | 2009-07-17 00:36:11 +0000 |
commit | 599279169ecbd363ccbaacaafd8b4bfc9b837c21 (patch) | |
tree | b3d27cf40f22f328a03cf0470eef4f63ed3aac0d /gr-wxgui/src/python/waterfall_window.py | |
parent | 06260e16099c61b70e48ed999ca12b8a82cc0a10 (diff) | |
download | gnuradio-599279169ecbd363ccbaacaafd8b4bfc9b837c21.tar.gz gnuradio-599279169ecbd363ccbaacaafd8b4bfc9b837c21.tar.bz2 gnuradio-599279169ecbd363ccbaacaafd8b4bfc9b837c21.zip |
fixed fft reording
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11450 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-wxgui/src/python/waterfall_window.py')
-rw-r--r-- | gr-wxgui/src/python/waterfall_window.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-wxgui/src/python/waterfall_window.py b/gr-wxgui/src/python/waterfall_window.py index 77819b733..c00992e14 100644 --- a/gr-wxgui/src/python/waterfall_window.py +++ b/gr-wxgui/src/python/waterfall_window.py @@ -261,8 +261,8 @@ class waterfall_window(wx.Panel, pubsub.pubsub): self.samples = samples = numpy.fromstring(msg, numpy.float32)[:self.fft_size] #only take first frame num_samps = len(samples) #reorder fft - if self.real: samples = samples[:num_samps/2] - else: samples = numpy.concatenate((samples[num_samps/2:], samples[:num_samps/2])) + if self.real: samples = samples[:(num_samps+1)/2] + else: samples = numpy.concatenate((samples[num_samps/2+1:], samples[:(num_samps+1)/2])) #plot the fft self.plotter.set_samples( samples=samples, |