[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Bug in waterfall window "Time scale" GUI control
From: |
Marcus D. Leech |
Subject: |
[Discuss-gnuradio] Bug in waterfall window "Time scale" GUI control |
Date: |
Wed, 28 Apr 2010 21:15:19 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4 |
If you try to increase the timescale beyond what can be accomplished
given the window geometry and
input frame rate, it provokes a floating-point divide error, near line
307 in ...waterfall_window.py
My naive attempt to fix it, by making sure the frame_rate counter never
dropped below 1, just seems
to have moved the problem around, provoking a different problem:
File
"/usr/local/lib/python2.6/site-packages/gnuradio/wxgui/waterfall_window.py",
line 159, in _on_incr_time_scale
self.parent[FRAME_RATE_KEY] *= 0.75
File
"/usr/local/lib/python2.6/site-packages/gnuradio/wxgui/pubsub.py", line
46, in __setitem__
p[pkey] = val
File
"/usr/local/lib/python2.6/site-packages/gnuradio/wxgui/pubsub.py", line
52, in __setitem__
sub(val)
File
"/usr/local/lib/python2.6/site-packages/gnuradio/blks2impl/logpwrfft.py", line
82, in set_vec_rate
self._sd.set_vec_rate(vec_rate)
File
"/usr/local/lib/python2.6/site-packages/gnuradio/blks2impl/stream_to_vector_decimator.py",
line 64, in set_vec_rate
self._update_decimator()
File
"/usr/local/lib/python2.6/site-packages/gnuradio/blks2impl/stream_to_vector_decimator.py",
line 75, in _update_decimator
self.set_decimation(self._sample_rate/self._vec_len/self._vec_rate)
ZeroDivisionError: float division
--
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org
- [Discuss-gnuradio] Bug in waterfall window "Time scale" GUI control,
Marcus D. Leech <=