- Updated `get_sleep_avg_duration` and `get_sleep_avg_quality` functions in `placeholder_resolver.py` to provide clearer error messages when data is unavailable. - Enhanced sleep quality calculations in `recovery_metrics.py` to handle cases with insufficient data more robustly. - Improved data handling in various metrics files (`activity_metrics.py`, `body_metrics.py`, `nutrition_metrics.py`, `recovery_metrics.py`, and `scores.py`) to ensure consistent float conversions for calculations. - Added utility functions in `recovery_metrics.py` for parsing and normalizing sleep segment data, enhancing the accuracy of sleep quality assessments. These changes improve the reliability and clarity of sleep-related metrics and enhance overall data handling across the application. |
||
|---|---|---|
| .. | ||
| training_profile | ||
| __init__.py | ||
| activity_metrics.py | ||
| body_metrics.py | ||
| correlations.py | ||
| health_metrics.py | ||
| nutrition_metrics.py | ||
| recovery_metrics.py | ||
| reference_values.py | ||
| scores.py | ||
| utils.py | ||