From 7d4701948f4941f985dfb2eafb0c4f162cc613fd Mon Sep 17 00:00:00 2001 From: Filip Date: Sun, 16 Mar 2025 13:40:29 +0100 Subject: [PATCH] Created a simple example script for showing HR plot. --- example.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 example.py 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()