[SciPy-dev] Error in scikits.timeseries module

Dave dave.hirschfeld@gmail....
Fri Sep 19 12:35:54 CDT 2008


Whilst starting to experiment with the timeseries module I came across the 
following error. Any idea what is wrong / what I'm doing wrong?

Thanks,
Dave


Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.

import numpy as np
import scikits.timeseries as ts
data = np.random.uniform(-100,100,600)
today = ts.now('B')
series = ts.time_series(data, dtype=np.float_, freq='B', start_date=today-
600)
series
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\dev\Python25\Lib\site-packages\scikits\timeseries\tseries.py", line 
715, in __repr__
    return desc_short % {'data': str(self._series),
  File "C:\dev\Python25\Lib\site-packages\scikits\timeseries\tseries.py", line 
485, in _get_series
    return self.view(MaskedArray)
  File "C:\dev\Python25\Lib\site-packages\scikits\timeseries\tseries.py", line 
471, in view
    output = MaskedArray.view(self, dtype=dtype, type=type)
ValueError: Cannot specify output type twice.
np.__version__
'1.2.0rc1'
ts.__version__
'0.67.0.dev'






More information about the Scipy-dev mailing list