Esempio n. 1
0
def load_gpx_file(file_name: str,
                  timezone_adjuster: TimezoneAdjuster) -> Track:
    """Load an individual GPX file as a track by using Track.load_gpx()"""
    log.info("Loading track %s...", os.path.basename(file_name))
    t = Track()
    t.load_gpx(file_name, timezone_adjuster)
    return t
def load_gpx_file(file_name: str) -> Track:
    """Load an individual GPX file as a track by using Track.load_gpx()"""
    log.info(f"Loading track {os.path.basename(file_name)}...")
    t = Track()
    t.load_gpx(file_name)
    return t