def __init__(self, track, request=None): ActivityFile.__init__(self, track, request) track.trackfile.open() self.xmltree = ElementTree(file=track.trackfile) track.trackfile.close() # logging.debug("Trackfile %r closed" % tcxfile.trackfile) self.parse_trackpoints()
def __init__(self, track, request=None): ActivityFile.__init__(self, track, request) # logging.debug("Trackfile %r closed" % tcxfile.trackfile) self.fitfile = fitparse.FitFile( self.track.trackfile, data_processor=fitparse.StandardUnitsDataProcessor(), check_crc=False ) self.parse_trackpoints()
def __init__(self, track, request=None): ActivityFile.__init__(self, track, request) self.gpxfile = gpxpy.parse(self.track.trackfile) self.parse_trackpoints()
def __init__(self, track, request=None, user=None, activityname="Import"): ActivityFile.__init__(self, track, request, user, activityname) self.gpxfile = gpxpy.parse(self.track.trackfile) self.parse_trackpoints()