Changeset 1051

Show
Ignore:
Timestamp:
06/22/08 18:13:44 (4 months ago)
Author:
pierregm
Message:

tseries: * fixed getitem for the case of an integer index larger than the length of the array

Files:

Legend:

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

    r1044 r1051  
    4747`SubplotClass` or `class`. 
    4848 
    49 *:Parameters*: 
    50     figure_instance : {Figure object} 
     49    Parameters 
     50    ---------- 
     51    figure_instance : Figure object 
    5152        Figure to which the generic subplot should be attached. 
    5253    args : {var} 
  • trunk/timeseries/scikits/timeseries/tseries.py

    r1050 r1051  
    520520                    indx = _dates.date_to_index(date_array(indx, 
    521521                                                           freq=self.freq)) 
    522                 except (IndexError, ValueError): 
     522                except (IndexError, ValueError, DateError): 
    523523                    exc_info = sys.exc_info() 
    524524                    msg = "Invalid index or date '%s'" % indx