예제 #1
0
파일: run.py 프로젝트: trieb/merge_tcx
from MergeTcx import MergeTcx
from ParseTcx import ParseTcx

# 1) Add new files to Config.py
# 2) Add date to 'date' below
# 3) Run script!

merged = MergeTcx('2016-02-01')
tcx = ParseTcx(merged.file_name)
tcx.parse()
tcx.plot_signal('HeartRateBpm')



예제 #2
0
파일: MergeTcx.py 프로젝트: trieb/merge_tcx
 def _parse_file(self, file):
     tcx = ParseTcx(file)
     tcx.parse()
     tcx.get_info()
     return tcx
예제 #3
0
파일: test.py 프로젝트: trieb/merge_tcx
from ParseTcx import ParseTcx

G920XT_tcx_file = 'Data/file_with_heartrate_data.tcx'
tacx_tcx_file = 'Data/file_without_heartrate_data.tcx'

# Parse data from the Tacx Trainer
tcx_tacx = ParseTcx(tacx_tcx_file)
tcx_tacx.parse()
tcx_tacx.get_info()

# Parse data from the Garmin 920XT
tcx_920XT = ParseTcx(G920XT_tcx_file)
tcx_920XT.parse()
tcx_920XT.get_info()