[Scipy-svn] r4992 - trunk/scipy/signal

scipy-svn@scip... scipy-svn@scip...
Tue Nov 4 06:08:03 CST 2008


Author: stefan
Date: 2008-11-04 06:07:22 -0600 (Tue, 04 Nov 2008)
New Revision: 4992

Modified:
   trunk/scipy/signal/waveforms.py
Log:
Fix error message in `gausspulse`.  Closes #756.

Modified: trunk/scipy/signal/waveforms.py
===================================================================
--- trunk/scipy/signal/waveforms.py	2008-11-04 08:34:04 UTC (rev 4991)
+++ trunk/scipy/signal/waveforms.py	2008-11-04 12:07:22 UTC (rev 4992)
@@ -104,7 +104,8 @@
     if bw <= 0:
         raise ValueError, "Fractional bandwidth (bw=%.2f) must be > 0." % bw
     if bwr >= 0:
-        raise ValueError, "Reference level for bandwidth must be < 0 dB" % bwr
+        raise ValueError, "Reference level for bandwidth (bwr=%.2f) must " \
+              "be < 0 dB" % bwr
 
     # exp(-a t^2) <->  sqrt(pi/a) exp(-pi^2/a * f^2)  = g(f)
 



More information about the Scipy-svn mailing list