Created a simple example script for showing HR plot.
This commit is contained in:
parent
5a27831dd4
commit
7d4701948f
12
example.py
Normal file
12
example.py
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
from analyze_sport_data import heart_rate_dataframe
|
||||||
|
from analyze_sport_data.file_records import from_fit_file
|
||||||
|
from matplotlib.pyplot import show
|
||||||
|
from os import scandir
|
||||||
|
|
||||||
|
data = [
|
||||||
|
from_fit_file(file.path, file.name) for file in scandir(".")
|
||||||
|
if file.name.endswith(".fit") and file.is_file()
|
||||||
|
]
|
||||||
|
|
||||||
|
heart_rate_dataframe(data).plot()
|
||||||
|
show()
|
||||||
Loading…
Reference in a new issue