[SciPy-dev] #880: lfilter, variable number of output
Sun Mar 15 05:19:17 CDT 2009
Stéfan van der Walt wrote:
> 2009/3/15 David Cournapeau <firstname.lastname@example.org>:
>> 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 ?
More information about the Scipy-dev