Skip to content

Commit

Permalink
Quick-and-dirty bugfix?
Browse files Browse the repository at this point in the history
  • Loading branch information
gwosd committed Apr 4, 2024
1 parent a6a5fa1 commit ec2514e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/lib/core/measurementInterpolation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,11 @@ class MeasurementInterpolation {
times[idx]
]),
);

for (int idx=0; idx < _offsetInDays; idx++) {
weightsList[idx] = initialExtrapolation[idx];
weightsList[lastIdx + 1 + idx] = finalExtrapolation[idx];
if (idx < _offsetInDays - 1){
weightsList[lastIdx + 1 + idx] = finalExtrapolation[idx];
}
}

return Vector.fromList(weightsList, dtype: dtype);
Expand Down Expand Up @@ -456,7 +457,7 @@ class MeasurementInterpolation {
static const int _offsetInDaysShown = 7;

/// offset of day in interpolation shown
static const int _dailyOffsetInHours = 8;
static const int _dailyOffsetInHours = 0;

/// 24h given in [ms]
static const int _dayInMs = 24 * 3600 * 1000;
Expand Down

0 comments on commit ec2514e

Please sign in to comment.