[SciPy-dev] #880: lfilter, variable number of output

David Cournapeau david at ar.media.kyoto-u.ac.jp
Sun Mar 15 06:19:17 EDT 2009


Stéfan van der Walt wrote:
> 2009/3/15 David Cournapeau <david at ar.media.kyoto-u.ac.jp>:
>   
>>    A user of scipy.signal.lfilter reported a bug in it, which I fixed,
>> but he also raised an interesting point concerning the variable number
>> of output in lfilter. I think always outputting the final values of the
>> delay line is better as well, but we can't change it wo breaking lfilter
>> API. I first thought about adding a lfilter2, but the name is a bit
>> misleading - and I also noticed that filter is not taken (which is the
>> name of this functionality under matlab).
>>    What about adding a filter function which is like lfilter, but
>> always return zf ?
>>     
>
> So we move the functionality to filter, let lfilter call filter, and
> add a deprecation notice to lfilter?  Sounds good.
>   

Modulo the deprecation warning, yes. I think scipy.signal would benefit
from a lot of cleaning, and if we ever decide to deprecate some things,
it may be better to do everything at once ?

cheers,

David



More information about the SciPy-Dev mailing list