[SciPy-user] detrend

Nils Wagner nwagner at mecha.uni-stuttgart.de
Wed Aug 14 07:06:50 CDT 2002


Hi,

detrend works here for

signal.detrend(arange(128.),-1,'linear')

but

>>> signal.detrend(arange(129.),-1,'linear')

dgelss:lwork=134
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File
"/usr/local/lib/python2.1/site-packages/scipy/signal/signaltools.py",
line 1107, in detrend
    coef,resids,rank,s = linalg.lstsq(A,newdata[sl])
  File "/usr/local/lib/python2.1/site-packages/scipy/linalg/basic.py",
line 277, in lstsq
    overwrite_b = overwrite_b)
flapack.error: (lwork>=3*minmn+MAX(2*minmn,MAX(maxmn,nrhs))) failed for
2nd keyword lwork
>>>

For what reason is lwork=134 ?

Nils



More information about the SciPy-user mailing list