#NEWLINE# def _set_predict_start_date( self , start ) : #NEWLINE# #INDENT# dates = self . data . dates #NEWLINE# if ( dates is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( start > len ( dates ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Start must be <= len(endog)' ) #NEWLINE# #UNINDENT# if ( start == len ( dates ) ) : #NEWLINE# #INDENT# self . data . predict_start = datetools . _date_from_idx ( dates [ ( - 1 ) ] , 1 , self . data . freq ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( start < len ( dates ) ) : #NEWLINE# #INDENT# self . data . predict_start = dates [ dates ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'Start must be <= len(dates)' )