[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 03/05: wxgui: corrected errors in wxgui fft
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 03/05: wxgui: corrected errors in wxgui fftsink_gl sample re-ordering |
Date: |
Wed, 15 Oct 2014 14:06:03 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch master
in repository gnuradio.
commit f1ad36efbe4a6688e3af7ef4484466d1db390444
Author: Michael Ossmann <address@hidden>
Date: Fri Sep 19 14:45:01 2014 -0600
wxgui: corrected errors in wxgui fftsink_gl sample re-ordering
---
gr-wxgui/python/wxgui/fft_window.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gr-wxgui/python/wxgui/fft_window.py
b/gr-wxgui/python/wxgui/fft_window.py
index 83375e5..0242005 100644
--- a/gr-wxgui/python/wxgui/fft_window.py
+++ b/gr-wxgui/python/wxgui/fft_window.py
@@ -336,8 +336,8 @@ class fft_window(wx.Panel, pubsub.pubsub):
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+1)/2]
- else: samples = numpy.concatenate((samples[num_samps/2+1:],
samples[:(num_samps+1)/2]))
+ if self.real: samples = samples[:(num_samps+2)/2]
+ else: samples = numpy.concatenate((samples[(num_samps+1)/2:],
samples[:(num_samps+2)/2]))
self.samples = samples
#peak hold calculation
if self[PEAK_HOLD_KEY]: