From 7929b8c0709321f4bc20a495f63dfbe10fa190fa Mon Sep 17 00:00:00 2001 From: Sanjay Soundarajan Date: Tue, 15 Oct 2024 10:50:02 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20update=20garmin=20metadat?= =?UTF-8?q?a=20headers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- garmin/metadata.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/garmin/metadata.py b/garmin/metadata.py index e72098e..612ba7d 100644 --- a/garmin/metadata.py +++ b/garmin/metadata.py @@ -377,31 +377,32 @@ def write_tsv(self, output_file): data = self.participants_data # Define the required column order + headers = [ "participant_id", "wrist_worn_on", "dominant_hand", - "heart_rate_filepath", - "heart_rate_record_count", - "average_heart_rate", + "heartrate_filepath", + "heartrate_record_count", + "average_heartrate_bpm", "oxygen_saturation_filepath", "oxygen_saturation_record_count", - "average_oxygen_saturation", - "stress_filepath", - "stress_record_count", - "average_stress", + "average_oxygen_saturation_pct", + "stress_level_filepath", + "stress_level_record_count", + "average_stress_level", "sleep_filepath", "sleep_record_count", - "average_sleep", + "average_sleep_hours", "respiratory_rate_filepath", "respiratory_rate_record_count", - "average_respiratory_rate", + "average_respiratory_rate_bpm", "physical_activity_filepath", "physical_activity_num_days", - "average_physical_activity", + "average_daily_activity", "active_calories_filepath", "active_calories_record_count", - "average_active_calories", + "average_active_calories_kcal", "sensor_sampling_duration_days", "manufacturer", "manufacturer_model_name",