Skip to content

fix(ml): cast Decimal DB value to float in sleep consistency calculation - #278

Merged
gerfru merged 2 commits into
mainfrom
fix/ml-sleep-decimal-type
Aug 18, 2026
Merged

fix(ml): cast Decimal DB value to float in sleep consistency calculation#278
gerfru merged 2 commits into
mainfrom
fix/ml-sleep-decimal-type

Conversation

@gerfru

@gerfru gerfru commented Aug 18, 2026

Copy link
Copy Markdown
Owner

DB returns start_h/end_h as decimal.Decimal, but the circular std-dev formula divides by 24.0 (float). Fix: float(h) cast in the list comprehension.

@gerfru
gerfru merged commit 92e89d7 into main Aug 18, 2026
13 checks passed
@gerfru
gerfru deleted the fix/ml-sleep-decimal-type branch August 18, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant