dado93 / pywearable

Python package for extraction, visualization, and analysis of physiological data collected through wearable sensors.
https://pywearable.readthedocs.io/en/latest/
MIT License
7 stars 1 forks source link

LabronftLoader failed to inizialize #79

Closed RadoslavaS closed 2 months ago

RadoslavaS commented 7 months ago

Labfront changed the structure of the CSV files, with the keys firstUnixTimestampInMs and lastUnixTimestampInMs no longer available in the header of the CSV file, thus the main indexing function of LabfrontLoader must be rewritten.

dado93 commented 6 months ago

I am currently working on the fix for this issue. With the new implementation, pywearable.loader.LabfrontLoader will index all the files in the project folder and store them in a pd.DataFrame with the following structure:

fullId userId labfrontId metric fileName firstTimestamp lastTimestamp
user01_01 user01 01 garmin-connect-stress garmin-connect-stress-file01 2024-01-01 2024-01-02
user01_01 user01 01 garmin-connect-stress garmin-connect-stress-file02 2024-01-02 2024-01-03

The firstTimestamp and lastTimestamp columns are populated based on the date present in the file names of Labfront according to the new naming convention.