diff options
author | mleech | 2008-12-30 04:58:11 +0000 |
---|---|---|
committer | mleech | 2008-12-30 04:58:11 +0000 |
commit | 6fb1e402a79cb9c0f78180caf44e4274aa2c503b (patch) | |
tree | 2215a1b325a1dd30918e23db5a432bdcb17b6454 /gr-radio-astronomy/src/python | |
parent | 567177c5e17e670f378ebc13aca7314e83a75a81 (diff) | |
download | gnuradio-6fb1e402a79cb9c0f78180caf44e4274aa2c503b.tar.gz gnuradio-6fb1e402a79cb9c0f78180caf44e4274aa2c503b.tar.bz2 gnuradio-6fb1e402a79cb9c0f78180caf44e4274aa2c503b.zip |
Fixed handling of out-of-range NOTCH specifications
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10180 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-radio-astronomy/src/python')
-rwxr-xr-x | gr-radio-astronomy/src/python/usrp_ra_receiver.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gr-radio-astronomy/src/python/usrp_ra_receiver.py b/gr-radio-astronomy/src/python/usrp_ra_receiver.py index 11dcb54ba..412264770 100755 --- a/gr-radio-astronomy/src/python/usrp_ra_receiver.py +++ b/gr-radio-astronomy/src/python/usrp_ra_receiver.py @@ -362,13 +362,13 @@ class app_flow_graph(stdgui2.std_top_block): # if (self.dual_mode == True): - self.setup_dual (self.setimode,self.use_notches) + self.setup_dual (self.setimode) if (self.interferometer == True): - self.setup_interferometer(self.setimode,self.use_notches) + self.setup_interferometer(self.setimode) if (self.normal_mode == True): - self.setup_normal(self.setimode,self.use_notches) + self.setup_normal(self.setimode) if (self.setimode == True): self.setup_seti() @@ -1127,6 +1127,8 @@ class app_flow_graph(stdgui2.std_top_block): diff = i - self.observing if int(i) == 0: break + if (i < (self.observing - self.bw/2) or i > (self.observing + self.bw/2)): + continue if (diff > 0): idx = diff / binwidth idx = round(idx) @@ -1241,7 +1243,7 @@ class app_flow_graph(stdgui2.std_top_block): # # Setup dual-channel (two antenna, usual orthogonal polarity probes in the same waveguide) # - def setup_dual(self, setimode,notches): + def setup_dual(self, setimode): self.setup_radiometer_common(2) |