def __init__(self, name, segments):
        """ Constructor

        When constructing a track it's not guaranteed that the segments
        have their properties computed. Call preprocess method over this
        class, or over each segment to guarantee it.

        Args:
            name (:obj:`str`)
            segments(:obj:`list` of :obj:`Segment`)
        """
        self.name = name
        self.meta = []
        self.segments = sorted(segments, key=lambda s: s.points[0].time)
def __init__ ( self , name , segments ) : self . name = name self . meta = [ ] self . segments = sorted ( segments , key = lambda s : s . points [ 0 ] . time )
Constructor

        When constructing a track it's not guaranteed that the segments
        have their properties computed. Call preprocess method over this
        class, or over each segment to guarantee it.

        Args:
            name (:obj:`str`)
            segments(:obj:`list` of :obj:`Segment`)