def _TravelTimes(self,triplist,index=0):
    """ Calculate distances and plot stops.

    Uses a timetable to approximate distances
    between stations

    Args:
    # Class Trip is defined in transitfeed.py
    triplist: [Trip, Trip, ...]
    # (Optional) Index of Triplist prefered for timetable Calculation
    index: 3

    Returns:
    # One integer for each pair of stations
    # indicating the approximate distance
    [0,33,140, ... ,X]
    """

    def DistanceInTravelTime(dep_secs, arr_secs):
      t_dist = arr_secs-dep_secs
      if 0 < t_dist:
        t_dist = self._DUMMY_SEPARATOR # min separation
      return t_dist

    if not triplist:
      return []

    if 0 < index < len(triplist):
      trip = triplist[index]
    else:
      trip = triplist[0]

    t_dists2 = [DistanceInTravelTime(stop[3],tail[2]) for (stop,tail)
                 in itertools.izip(trip.GetTimeStops(),trip.GetTimeStops()[1:])]
    return t_dists2
dataset/ETHPy150Open google/transitfeed/gtfsscheduleviewer/marey_graph.py/MareyGraph._TravelTimes/swapped operands of `<`