repin analytics for temp_circadian zero-variance fix, kAlgoVersion 96->97 - #451
Conversation
…->97 analytics main moved one commit past the #75 pin (0441ef9): temp_circadian's _nonparam divided by varTot/diffN with no zero-variance guard, so a flat or heavily-quantized skin-temp window reported interdailyStability/ intradailyVariability as 0.0 instead of withholding — fabricated output on a flat series. Bumps kAlgoVersion since it changes stored circadian_lifestyle numbers for real users.
There was a problem hiding this comment.
Sorry @abdulsaheel, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 23 hours and 1 minute by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's GuideRepins analytics and its lockfile resolution to commit 0441ef9, incorporating the temp-circadian zero-variance guard, and bumps kAlgoVersion from 96 to 97 so affected stored circadian outputs are versioned and recomputed appropriately. Flow diagram for temp-circadian zero-variance handlingflowchart LR
A[Skin-temperature window] --> B{varTot or diffN is zero}
B -->|Yes| C[Withhold metrics]
B -->|No| D[Compute interdailyStability and intradailyVariability]
C --> E[Versioned circadian_lifestyle output]
D --> E
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: OpenStrap/edge/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe analytics dependency pin changed to a revision described as adding zero-variance guards for circadian stability metrics. The derivation algorithm version increased from 96 to 97. ChangesCircadian analytics update
Estimated code review effort: 2 (Simple) | ~8 minutes Suggested reviewers: Merge Risk: ⚪ Minimal · up to The updated analytics pin selects the zero-variance fix, and the algorithm version advances for the changed circadian outputs. No concrete merge risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
User description
analytics main moved one commit past the last pin (0441ef9): temp_circadian was reporting IS/IV as 0.0 on a flat skin-temp window instead of withholding, same zero-variance gap circadian_np already guards against. repinned + kAlgoVersion 96->97 since it changes stored numbers.
Summary by Sourcery
Repin analytics and advance the algorithm version to correct zero-variance circadian temperature metrics.
Bug Fixes:
Enhancements:
Chores:
PR Type
Bug fix
Description
Bumps
kAlgoVersion96→97 fortemp_circadianzero-variance fixRepins analytics to
0441ef9(one commit past PR update screenshots, they were 3 weeks stale #75 merge SHA)Fix: flat/quantized skin-temp windows no longer emit fabricated
0.0forinterdailyStability/intradailyVariabilityStored
circadian_lifestyleoutput changes for affected users on recomputeDiagram Walkthrough
File Walkthrough
derivation_engine.dart
Bump kAlgoVersion to 97 and repin analytics SHAlib/compute/derivation_engine.dart
kAlgoVersionfrom 96 to 97 with a changelog entry describing thetemp_circadian zero-variance fix
kAnalyticsPinfrom01e8b6e...to0441ef9...to match the newanalytics tip
rationale
pubspec.yaml
Repin analytics dependency to zero-variance fix commitpubspec.yaml
ref:from01e8b6e...to0441ef9...affected users, and verification command
Summary by CodeRabbit