childmindresearch / wristpy

https://childmindresearch.github.io/wristpy/
GNU Lesser General Public License v2.1
2 stars 1 forks source link

Task: Implement WatchData data storage. #16

Closed ReinderVosDeWael closed 3 months ago

ReinderVosDeWael commented 4 months ago

Description

The InputData class should be refactored to a WatchData class that stores all data inside Measurement classes, each of which contains the underlying measurements and the associated datetimes.

This should be inside wristpy/core/models.py

Tasks

Freeform Notes

No response

ReinderVosDeWael commented 3 months ago

Proposed alteration: time is instead a polars series (due to severe performance degradations without polars); a validator is included on the measurement class to ensure the datatype is a datetime, as mypy cannot catch a faulty datatype inside a polars series.