code: def get_closest_index(myList, myNumber):
      
      closest_values_index = _np.where(self.time == take_closest(myList, myNumber))[0][0]
      return closest_values_index
docs: Assumes myList is sorted. Returns closest value to myNumber.
      If two numbers are equally close, return the smallest number.
  
      Parameters
      ----------
      myList : array
          The list in which to find the closest value to myNumber
      myNumber : float
          The number to find the closest to in MyList
  
      Returns
      -------
      closest_values_index : int
          The index in the array of the number closest to myNumber in myList