From: mleech Date: Sat, 3 Jan 2009 01:50:36 +0000 (+0000) Subject: Fixed bug that under-flowed self.notches X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b54ab8fc36e242e0ae9c0fad99e1eda5d6423bd1;p=debian%2Fgnuradio Fixed bug that under-flowed self.notches increased notch resolution to 128 taps git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10190 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/gr-radio-astronomy/src/python/usrp_ra_receiver.py b/gr-radio-astronomy/src/python/usrp_ra_receiver.py index 137ed9eb..c0edbe0e 100755 --- a/gr-radio-astronomy/src/python/usrp_ra_receiver.py +++ b/gr-radio-astronomy/src/python/usrp_ra_receiver.py @@ -1044,7 +1044,7 @@ class app_flow_graph(stdgui2.std_top_block): delfreq = -1 if self.use_notches == True: for i in range(0,len(self.notches)): - if abs(self.notches[i] - dfreq) < ((self.bw/self.NOTCH_TAPS)/2.0): + if self.notches[i] != 0 and abs(self.notches[i] - dfreq) < ((self.bw/self.NOTCH_TAPS)/2.0): delfreq = i break j = 0