You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
incremental minutes: score strain from the series - #120
sync() scored strain with the lump form over hr.length, so off-skin minutes were charged baseline and quiet minutes could cancel exercise. now uses strainScoreFromSeries like the batch path. tests compare against it, plus one with 200 strap-off minutes.
Summary by CodeRabbit
Bug Fixes
Improved incremental strain calculations by aligning them with heart-rate series data and batch results, including periods with off-skin zero-HR readings.
No actionable comments were generated in the recent review.
Walkthrough
Incremental strain calculation now uses the heart-rate series, resting and maximum heart rates, quiet HRR, sex, and quiet-settled status. Test expectations use the same calculation, and a new test compares incremental and batch strain for a series with zero-HR minutes.
Changes: Strain calculation
Layer / File(s)
Summary
Series-based strain calculation and parity tests lib/src/onehz/incremental_minutes.dart, test/onehz/incremental/minute_summary_test.dart, test/onehz/support/incremental_compare.dart, test/properties/incremental_laws_test.dart
IncrementalMinuteMetrics.sync now derives strain with strainScoreFromSeries instead of using accumulated TRIMP. Test expectations use the series-based calculation. A new test checks incremental and batch strain parity for heart-rate data that includes zero-HR minutes.
Incremental strain scoring now matches the batch calculation and skips off-skin minutes. No merge-blocking risk was identified.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: IncrementalMinuteMetrics.sync now scores strain from the heart-rate series via strainScoreFromSeries instead of the lump TRIMP-based strainScoreMetric over hr.length. …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: IncrementalMinuteMetrics.sync now scores strain from the heart-rate series via strainScoreFromSeries instead of the lump TRIMP-based strainScoreMetric over hr.length. The objectives confirm this matches the batch path and fixes off-skin minute handling. The title is specific and concise, and the summary covers the same change.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: af296966-7060-426f-ad42-fb632f6d3a64
Commits
Reviewing files that changed from the base of the PR and between d54980e and b67c3f4.
Files selected for processing: 4
lib/src/onehz/incremental_minutes.dart
test/onehz/incremental/minute_summary_test.dart
test/onehz/support/incremental_compare.dart
test/properties/incremental_laws_test.dart
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sync() scored strain with the lump form over hr.length, so off-skin minutes were charged baseline and quiet minutes could cancel exercise. now uses strainScoreFromSeries like the batch path. tests compare against it, plus one with 200 strap-off minutes.
Summary by CodeRabbit