commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] gr-radio-astronomy/src/python usrp_psr_receiver.py


From: Marcus D. Leech
Subject: [Commit-gnuradio] gr-radio-astronomy/src/python usrp_psr_receiver.py
Date: Sun, 02 Jul 2006 19:10:24 +0000

CVSROOT:        /sources/gnuradio
Module name:    gr-radio-astronomy
Changes by:     Marcus D. Leech <mleech>        06/07/02 19:10:24

Modified files:
        src/python     : usrp_psr_receiver.py 

Log message:
        Fixed bug in compute_disp_ntaps--for very low DM values, it was 
returning
          an ntaps value of 0, which caused DivZero errors downstream.  Had it
          return a minimum ntaps value of 64.  Very low DM values (< 1) are only
          used during testing--real-universe DM values are generally great than
          1.  But I wanted to fix this edge case.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gr-radio-astronomy/src/python/usrp_psr_receiver.py?cvsroot=gnuradio&r1=1.8&r2=1.9

Patches:
Index: usrp_psr_receiver.py
===================================================================
RCS file: /sources/gnuradio/gr-radio-astronomy/src/python/usrp_psr_receiver.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- usrp_psr_receiver.py        1 Jul 2006 16:43:54 -0000       1.8
+++ usrp_psr_receiver.py        2 Jul 2006 19:10:24 -0000       1.9
@@ -1089,10 +1089,12 @@
         # Should be bandwidth*smeartime*2, but the Gnu Radio FFT filter
         #   already expands it by a factor of 2
         ntaps = bw*Dt
+        if ntaps < 64:
+            ntaps = 64
         return(int(ntaps))
 
 def main ():
-    app = stdgui.stdapp(app_flow_graph, "RADIO ASTRONOMY PULSAR RECEIVER: 
$Revision: 1.8 $", nstatus=1)
+    app = stdgui.stdapp(app_flow_graph, "RADIO ASTRONOMY PULSAR RECEIVER: 
$Revision: 1.9 $", nstatus=1)
     app.MainLoop()
 
 if __name__ == '__main__':




reply via email to

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