commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10995 - gnuradio/branches/features/experimental-gui


From: jblum
Subject: [Commit-gnuradio] r10995 - gnuradio/branches/features/experimental-gui
Date: Fri, 8 May 2009 16:41:46 -0600 (MDT)

Author: jblum
Date: 2009-05-08 16:41:46 -0600 (Fri, 08 May 2009)
New Revision: 10995

Modified:
   gnuradio/branches/features/experimental-gui/usrp_siggen.py
Log:
removed interp range check in siggen, handled by generic usrp

Modified: gnuradio/branches/features/experimental-gui/usrp_siggen.py
===================================================================
--- gnuradio/branches/features/experimental-gui/usrp_siggen.py  2009-05-08 
22:40:15 UTC (rev 10994)
+++ gnuradio/branches/features/experimental-gui/usrp_siggen.py  2009-05-08 
22:41:46 UTC (rev 10995)
@@ -116,15 +116,11 @@
         self[AMPLITUDE_KEY] = max(ampl_range[0], min(ampl, ampl_range[1]))
 
     def set_interp(self, interp):
-        if interp < 4 or interp > 512: # FIXME get from flowgraph
-            if self._verbose: print "Interpolation rate out of range:", interp
-            return False
-
         if not self._u.set_interp(interp):
             raise RuntimeError("Failed to set interpolation rate %i" % 
(interp,))
 
         if self._verbose:
-            print "USRP interpolation rate:", self[INTERP_KEY]
+            print "USRP interpolation rate:", interp
             print "USRP IF bandwidth: %sHz" % (n2s(self[SAMP_RATE_KEY]),)
 
         if self[TYPE_KEY] in (gr.GR_SIN_WAVE, gr.GR_CONST_WAVE):





reply via email to

[Prev in Thread] Current Thread [Next in Thread]