scikits.timeseries problem (error with e.g. cumprod)
I am using scikits.timeseries and I found the toolkit very useful so far. However, I've run into a problem with functions such as cumprod, which just doesn't work (and I've thus created replacement functions using numpy functions) Even so, I'd like it to be solved seeing as I don't really like my ugly hacks. The error I get when trying to call cumprod is "TypeError: __call__() got an unexpected keyword argument 'dtype'" To replicate this error, try the following: ##### import numpy import scipy import scikits.timeseries as ts data = numpy.random.uniform(-1,1,90) new_series = ts.time_series(data, start_date=ts.now('D')-90) cp_series = new_series.cumprod() Btw, I am running this version of scikits.timeseries: '0.67.0.dev-r1228'
On Saturday 30 August 2008 10:19:47 Martin Enlund wrote:
I am using scikits.timeseries and I found the toolkit very useful so far.
Thanks a lot !
However, I've run into a problem with functions such as cumprod, which just doesn't work (and I've thus created replacement functions using numpy functions)
OK, I see. Basically, there's been a change in numpy.ma a few weeks back whose side-effects are now felt on timeseries. I'm on it, I'll let you know how it goes. Could you send a list of functions you have a problem with ?
Thanks for the rapid response. I have only had problems with cumsum and cumprod so far. All other _tsarraymethods seem to work fine 2008/8/30 Pierre GM <pgmdevlist@gmail.com>:
On Saturday 30 August 2008 10:19:47 Martin Enlund wrote:
I am using scikits.timeseries and I found the toolkit very useful so far.
Thanks a lot !
However, I've run into a problem with functions such as cumprod, which just doesn't work (and I've thus created replacement functions using numpy functions)
OK, I see. Basically, there's been a change in numpy.ma a few weeks back whose side-effects are now felt on timeseries. I'm on it, I'll let you know how it goes. Could you send a list of functions you have a problem with ?
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
Martin, That should be fixed in SVN1245. Let me know if you run into other problems. Cheers P.
participants (2)
-
Martin Enlund
-
Pierre GM