Commit 4eea0b2
Pete Schwamb
Restore predicted carb-effect line on ICE and food-insight charts
The carb-effect chart on the Carb Absorption screen and the Favorite Foods
insights screen lost their predicted carb-effect line in the Tidepool
stateless-algorithm refactor. `dynamicGlucoseEffects(from: end, ...)`
generated effects only from now+1h forward, but the chart's visible window
ends at roughly now+1h — so the two ranges only touched at a single point
and nothing rendered.
Widen the output sampling window to `from: start` at both call sites
(carb-absorption review and historical-charts data). The carb-absorption
model itself is unchanged; only the sample window grows to span the chart.
No dosing-path impact: the main Loop algorithm runs through LoopAlgorithm
(SPM), not these UI-only helpers.
Reported by @marionbarker in LoopKit/LoopWorkspace#213.1 parent ce1935b commit 4eea0b2
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1507 | 1507 | | |
1508 | 1508 | | |
1509 | 1509 | | |
1510 | | - | |
| 1510 | + | |
1511 | 1511 | | |
1512 | 1512 | | |
1513 | 1513 | | |
| |||
0 commit comments