parameters: (self, time)
return_statement: return index
docstring: Get the index of the next value after time.
docstring_summary: Get the index of the next value after time.
docstring_tokens: Get the index of the next value after time .
function: def get_next_index(self, time):
          """Get the index of the next value after time."""
          try:
              index = next(idx for idx, val in enumerate(self.time) if val > time)
          except StopIteration:
              index = len(self.time)
          except Exception, e:
              raise e
          return index
function_tokens: def get_next_index ( self , time ) : try : index = next ( idx for idx , val in enumerate ( self . time ) if val > time ) except StopIteration : index = len ( self . time ) except Exception , e : raise e return index