Changeset 1201

Show
Ignore:
Timestamp:
08/05/08 17:14:46 (4 months ago)
Author:
pierregm
Message:

* the name of a _tsmethod can now be accessed by self.name
* minor doc update

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/timeseries/scikits/timeseries/tseries.py

    r1169 r1201  
    286286""" 
    287287    def __init__ (self, methodname): 
    288         self._name = methodname 
     288        self._name = self.__name__ = methodname 
    289289        self.obj = None 
    290290 
     
    323323           abinop(x, filly) = x for all x to enable reduce. 
    324324        """ 
    325         self._name = methodname 
     325        self._name = self.__name__ = methodname 
    326326        self._ondates = ondates 
    327327        self.obj = None 
     
    355355           abinop(x, filly) = x for all x to enable reduce. 
    356356        """ 
    357         self._name = methodname 
     357        self._name = self.__name__ = methodname 
    358358        self.obj = None 
    359359 
     
    385385    """Base class for the definition of time series. 
    386386 
    387 A time series is here defined as the combination of two arrays: 
    388  
    389     series : {MaskedArray} 
     387    A time series is here defined as the combination of two arrays: 
     388    * series : {MaskedArray} 
    390389        Data part 
    391     dates : {DateArray} 
    392         Date part 
     390    * dates : {DateArray} 
     391        Date part 
    393392 
    394393*Construction*: 
     
    12651264    """Creates a TimeSeries object 
    12661265 
    1267 *Parameters*: 
    1268     data : {array_like} 
    1269         data portion of the array. Any data that is valid for constructing a 
    1270         MaskedArray can be used here. May also be a TimeSeries object 
    1271     dates : {DateArray}, optional 
    1272         Date part. 
     1266    Parameters 
     1267    ---------- 
     1268    data : array_like 
     1269        Data portion of the array. Any data that is valid for constructing a 
     1270        MaskedArray can be used here. May also be a TimeSeries object. 
     1271    dates : {None, DateArray}, optional 
     1272        A sequence of dates corresponding to each entry. 
     1273        If None, the dates will be constructed as a DateArray with the same 
     1274        length as `data`, starting at `start_date` with frequency `freq`. 
     1275    start_date : {Date}, optional 
     1276        Date corresponding to the first entry of the data (index 0) 
    12731277    freq : {freq_spec}, optional 
    1274         a valid frequency specification 
    1275     start_date : {Date}, optional 
    1276         date corresponding to index 0 in the data 
     1278        A valid frequency specification 
    12771279 
    12781280*Other Parameters*: