parameters: (self, t)
return_statement: return next(i for i, ti in enumerate(self.time) if ti > t) - 1
docstring: Return the index i of the interval containing t, i.e. t in time[i], time[i+1]
docstring_summary: Return the index i of the interval containing t, i.e. t in time[i], time[i+1]
docstring_tokens: Return the index i of the interval containing t i . e . t in time [ i ] time [ i + 1 ]
function: def get_index_from_time(self, t):
          '''Return the index i of the interval containing t, i.e. t in time[i], time[i+1] '''
          if t > self.time[-1]:
              return len(self.time) - 1
          return next(i for i, ti in enumerate(self.time) if ti > t) - 1
function_tokens: def get_index_from_time ( self , t ) : if t > self . time [ - 1 ] : return len ( self . time ) - 1 return next ( i for i , ti in enumerate ( self . time ) if ti > t ) - 1