[SciPy-User] Pytseries numpy func error

mudit sharma mudit_19a@yahoo....
Tue Nov 10 12:16:53 CST 2009


series.sum() gives this error whereas series.data.sum() works.

/usr/local/lib/python2.6/dist-packages/scikits.timeseries-0.91.1-py2.6-linux-x86_64.egg/scikits/timeseries/tseries.pyc in __call__(self, *args, **params)
    471         (_dates, _series) = (instance._dates, instance._series)
    472         func = getattr(_series, self.__name__)
--> 473         result = func(*args, **params)
    474         if _dates.size != _series.size:
    475             axis = params.get('axis', None)

/usr/local/lib/python2.6/dist-packages/numpy-1.3.0-py2.6-linux-x86_64.egg/numpy/ma/core.pyc in sum(self, axis, dtype, out)
   3675         # No explicit output

   3676         if out is None:
-> 3677             result = self.filled(0).sum(axis, dtype=dtype).view(type(self))
   3678             if result.ndim:
   3679                 result.__setmask__(newmask)

AttributeError: 'float' object has no attribute 'view'


      


More information about the SciPy-User mailing list