def has_elevations(self):
        if not self.points:
            return True
            # ... or otherwise one empty track segment would change the entire
            # track's "has_times" status!

        found = 0
        for track_point in self.points:
            if track_point.elevation:
                found += 1

        return len(self.points) > 2 and float(found) / float(len(self.points)) > .75
Add a constant offset to every positional reference in this tree
dataset/ETHPy150Open tkrajina/gpxpy/gpxpy/gpx.py/GPXTrackSegment.has_elevations--crossover with--dataset/ETHPy150Open uwescience/raco/raco/expression/expression.py/Expression.add_offset_by_terms