Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ps2 committed Aug 1, 2023
1 parent 19d78d4 commit 882b3fb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions LoopKit/DoseMath.swift
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ extension Collection where Element: GlucoseValue {
let percentEffected = model.percentEffectRemaining(at: start) - model.percentEffectRemaining(at: end)
return percentEffected * segment.value.doubleValue(for: unit)
}
print("Correcting from \(predictedGlucoseValue) to \(targetValue), effectedSensitivity = \(effectedSensitivity)")

// Update range statistics
if minGlucose == nil || prediction.quantity < minGlucose!.quantity {
Expand All @@ -322,7 +321,6 @@ extension Collection where Element: GlucoseValue {
), correctionUnits > 0 else {
continue
}
print("Correction = \(correctionUnits)")

// Update the correction only if we've found a new minimum
guard minCorrectionUnits == nil || correctionUnits < minCorrectionUnits! else {
Expand Down

0 comments on commit 882b3fb

Please sign in to comment.