Fixed bug that under-flowed self.notches
[debian/gnuradio] / gr-radio-astronomy / src / python / usrp_ra_receiver.py
index 137ed9eb791003b65ae7eec29eae54d2abaa5465..c0edbe0e91d765b7065c1262d53ab301c7714ebc 100755 (executable)
@@ -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