diff options
author | jblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-01-28 19:52:45 +0000 |
---|---|---|
committer | jblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-01-28 19:52:45 +0000 |
commit | f6d78800dc5b9db2025ffc2855f09f5cc79b16a6 (patch) | |
tree | 44fbf0143dcf38073d92b881f51add6573798977 /gr-wxgui/src/python/common.py | |
parent | d902f1e112636d4c9d1257c50ee259db382770f5 (diff) |
fixed 2 scaling bugs in scopesink
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10329 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-wxgui/src/python/common.py')
-rw-r--r-- | gr-wxgui/src/python/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-wxgui/src/python/common.py b/gr-wxgui/src/python/common.py index f31e1a7085..e7d08891d3 100644 --- a/gr-wxgui/src/python/common.py +++ b/gr-wxgui/src/python/common.py @@ -259,7 +259,7 @@ def get_min_max(samples): """ scale_factor = 3 mean = numpy.average(samples) - rms = scale_factor*((numpy.sum((samples-mean)**2)/len(samples))**.5) + rms = numpy.max([scale_factor*((numpy.sum((samples-mean)**2)/len(samples))**.5), .1]) min = mean - rms max = mean + rms return min, max |