[SciPy-Dev] iirdesign fails with ftype='bessel'

Ralf Gommers ralf.gommers at gmail.com
Wed Dec 3 17:49:27 EST 2014


On Tue, Dec 2, 2014 at 12:52 PM, Pierre Haessig <pierre.haessig at crans.org>
wrote:

> Hi,
>
> The scipy.signal.iirdesign function accepts different filter types like
> 'butter' or 'ellip' (cf.
>
> http://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.signal.iirdesign.html
> ).
>
> However, it fails with the ftype 'bessel':
> ValueError: bessel does not have order selection. Use iirfilter function.
>
> This error is triggered at this line of code:
>
> https://github.com/scipy/scipy/blob/master/scipy/signal/filter_design.py#L645
>
> So in practice, the iirdesign function cannot accept the 'bessel' type.
> Shouldn't we remove it from the docstring ?
> Or is this a pedagogical error, put here on purpose ?
>

I'm not sure what that's supposed to teach. It would be good to remove
'bessel' from the docs. Also, iirdesign() has the impressive number of zero
tests.

Care to send a PR for this?

Cheers,
Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20141203/4092e407/attachment.html>


More information about the SciPy-Dev mailing list