diff --git a/example.py b/example.py new file mode 100644 index 0000000..85a02f0 --- /dev/null +++ b/example.py @@ -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()