[Scipy-tickets] [SciPy] #756: gausspulse error (string_without_format%expr)

SciPy scipy-tickets@scipy....
Sat Nov 29 06:43:54 CST 2008

#756: gausspulse error (string_without_format%expr)
 Reporter:  LambertDW     |        Owner:  somebody
     Type:  defect        |       Status:  new     
 Priority:  normal        |    Milestone:          
Component:  scipy.signal  |      Version:          
 Severity:  minor         |   Resolution:          
 Keywords:                |  
Comment (by confluence):

 It looks like this has already been fixed, and can be closed.  Lines 107
 and 108 of waveforms.py currently read:

         raise ValueError, "Reference level for bandwidth (bwr=%.2f) must "
               "be < 0 dB" % bwr

 and I get a correctly formatted ValueError:

 >>> import scipy.signal as sig
 >>> sig.gausspulse(scipy.mgrid[-5:5:128j],(1/.002)/10,20,1,retenv=True)
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python2.5/site-packages/scipy/signal/waveforms.py", line
 108, in gausspulse
     "be < 0 dB" % bwr
 ValueError: Reference level for bandwidth (bwr=1.00) must be < 0 dB

Ticket URL: <http://scipy.org/scipy/scipy/ticket/756#comment:1>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list