[SciPy-Dev] Add detrend=None for scipy.signal.welch et al.

Eric Moore ewm at redtetrahedron.org
Sat Feb 1 11:09:40 EST 2014


On Saturday, February 1, 2014, Ralf Gommers <ralf.gommers at gmail.com> wrote:

>
>
>
> On Fri, Jan 31, 2014 at 10:40 PM, Maximilian Singh <mws at lionex.de<javascript:_e(%7B%7D,'cvml','mws at lionex.de');>
> > wrote:
>
>> Hey all,
>>
>> I suggest to add the possibility to turn off the 'detrend' functionality
>> in scipy.signal.welch and scipy.signal.periodogram, e.g. by giving
>> 'detrend=None' as parameter.  Although detrending is an useful option,
>> there are also use cases where DC should not be suppressed.
>>
>> Do you agree that this is common enough to be added?
>>
>
> Hard to judge how common it is, but if you have a use case then I don't
> see any problem in adding it. PR welcome.
>
> Ralf
>
>
Welch calls signal.detrend internally, I wonder if it would be better to
add this to detrend instead.


Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20140201/33c63ffe/attachment.html>


More information about the SciPy-Dev mailing list