Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github "loudnate/LoopKit" ~> 0.3.5
github "loudnate/LoopKit" ~> 0.4.0
github "loudnate/xDripG5" ~> 0.5.0
github "loudnate/SwiftCharts" "loudnate/naterade"
github "mddub/dexcom-share-client-swift" ~> 0.1
github "mddub/G4ShareSpy" ~> 0.2
github "ps2/rileylink_ios" ~> 0.7.1
github "mddub/G4ShareSpy" ~> 0.2.1
github "ps2/rileylink_ios" ~> 0.8.0
github "amplitude/Amplitude-iOS" "mpurland-framework"
6 changes: 3 additions & 3 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github "amplitude/Amplitude-iOS" "a3d6720626e72a678489bce83ed9dacadb505dd7"
github "loudnate/Crypto" "13fee45175b88629aeabe60b4b4fc3daf86fa0a3"
github "mddub/G4ShareSpy" "v0.2.0"
github "loudnate/LoopKit" "v0.3.5"
github "mddub/G4ShareSpy" "v0.2.1"
github "loudnate/LoopKit" "v0.4.0"
github "loudnate/SwiftCharts" "8671287afb29640f9cffced6521b1098b7aac085"
github "mddub/dexcom-share-client-swift" "v0.1.3"
github "loudnate/xDripG5" "0.5.0"
github "ps2/rileylink_ios" "v0.7.1"
github "ps2/rileylink_ios" "v0.8.0"
Binary file modified Carthage/Build/iOS/CarbKit.framework/CarbKit
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Carthage/Build/iOS/CarbKit.framework/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Carthage/Build/iOS/G4ShareSpy.framework/G4ShareSpy
Binary file not shown.
Binary file modified Carthage/Build/iOS/G4ShareSpy.framework/Info.plist
Binary file not shown.
Binary file modified Carthage/Build/iOS/GlucoseKit.framework/GlucoseKit
Binary file not shown.
Binary file modified Carthage/Build/iOS/GlucoseKit.framework/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Carthage/Build/iOS/InsulinKit.framework/Info.plist
Binary file not shown.
Binary file modified Carthage/Build/iOS/InsulinKit.framework/InsulinKit
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Carthage/Build/iOS/LoopKit.framework/Assets.car
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions Carthage/Build/iOS/LoopKit.framework/Headers/LoopKit-Swift.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Carthage/Build/iOS/LoopKit.framework/Info.plist
Binary file not shown.
Binary file modified Carthage/Build/iOS/LoopKit.framework/LoopKit
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Carthage/Build/iOS/LoopKit.framework/TextFieldTableViewCell.nib
Binary file not shown.
Binary file modified Carthage/Build/iOS/MinimedKit.framework/Info.plist
Binary file not shown.
Binary file modified Carthage/Build/iOS/MinimedKit.framework/MinimedKit
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Carthage/Build/iOS/NightscoutUploadKit.framework/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Carthage/Build/iOS/RileyLinkBLEKit.framework/Info.plist
Binary file not shown.
Binary file modified Carthage/Build/iOS/RileyLinkBLEKit.framework/RileyLinkBLEKit
Binary file not shown.
Binary file modified Carthage/Build/iOS/RileyLinkKit.framework/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Carthage/Build/iOS/RileyLinkKit.framework/RileyLinkKit
Binary file not shown.
Binary file not shown.
Binary file modified Documentation/Screenshots/Watch Carb Entry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 20 additions & 20 deletions DoseMathTests/DoseMathTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ class RecommendTempBasalTests: XCTestCase {

// Cancel existing temp basal
let lastTempBasal = DoseEntry(
type: .TempBasal,
type: .tempBasal,
startDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: -11)),
endDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: 19)),
value: 0.125,
unit: .UnitsPerHour
unit: .unitsPerHour
)

dose = DoseMath.recommendTempBasalFromPredictedGlucose(glucose,
Expand Down Expand Up @@ -167,11 +167,11 @@ class RecommendTempBasalTests: XCTestCase {
XCTAssertNil(dose)

let lastTempBasal = DoseEntry(
type: .TempBasal,
type: .tempBasal,
startDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: -11)),
endDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: 19)),
value: 1.225,
unit: .UnitsPerHour
unit: .unitsPerHour
)

dose = DoseMath.recommendTempBasalFromPredictedGlucose(glucose,
Expand Down Expand Up @@ -205,11 +205,11 @@ class RecommendTempBasalTests: XCTestCase {

// Ignore due to existing dose
var lastTempBasal = DoseEntry(
type: .TempBasal,
type: .tempBasal,
startDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: -11)),
endDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: 19)),
value: 0.125,
unit: .UnitsPerHour
unit: .unitsPerHour
)

dose = DoseMath.recommendTempBasalFromPredictedGlucose(glucose,
Expand All @@ -225,11 +225,11 @@ class RecommendTempBasalTests: XCTestCase {

// Cancel existing dose
lastTempBasal = DoseEntry(
type: .TempBasal,
type: .tempBasal,
startDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: -11)),
endDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: 19)),
value: 1.225,
unit: .UnitsPerHour
unit: .unitsPerHour
)

dose = DoseMath.recommendTempBasalFromPredictedGlucose(glucose,
Expand All @@ -246,11 +246,11 @@ class RecommendTempBasalTests: XCTestCase {

// Continue existing dose
lastTempBasal = DoseEntry(
type: .TempBasal,
type: .tempBasal,
startDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: -21)),
endDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: 9)),
value: 0.125,
unit: .UnitsPerHour
unit: .unitsPerHour
)

dose = DoseMath.recommendTempBasalFromPredictedGlucose(glucose,
Expand Down Expand Up @@ -279,11 +279,11 @@ class RecommendTempBasalTests: XCTestCase {
XCTAssertNil(dose)

lastTempBasal = DoseEntry(
type: .TempBasal,
type: .tempBasal,
startDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: -21)),
endDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: 9)),
value: 0.125,
unit: .UnitsPerHour
unit: .unitsPerHour
)

dose = DoseMath.recommendTempBasalFromPredictedGlucose(glucose,
Expand Down Expand Up @@ -345,11 +345,11 @@ class RecommendTempBasalTests: XCTestCase {
XCTAssertNil(dose)

let lastTempBasal = DoseEntry(
type: .TempBasal,
type: .tempBasal,
startDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: -11)),
endDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: 19)),
value: 1.225,
unit: .UnitsPerHour
unit: .unitsPerHour
)

dose = DoseMath.recommendTempBasalFromPredictedGlucose(glucose,
Expand Down Expand Up @@ -528,11 +528,11 @@ class RecommendBolusTests: XCTestCase {

// Don't consider net-negative temp basal
let lastTempBasal = DoseEntry(
type: .TempBasal,
type: .tempBasal,
startDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: -11)),
endDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: 19)),
value: 0.01,
unit: .UnitsPerHour
unit: .unitsPerHour
)

dose = DoseMath.recommendBolusFromPredictedGlucose(glucose,
Expand Down Expand Up @@ -638,11 +638,11 @@ class RecommendBolusTests: XCTestCase {

// Less existing temp
var lastTempBasal = DoseEntry(
type: .TempBasal,
type: .tempBasal,
startDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: -11)),
endDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: 19)),
value: 1.225,
unit: .UnitsPerHour
unit: .unitsPerHour
)

dose = DoseMath.recommendBolusFromPredictedGlucose(glucose,
Expand All @@ -658,11 +658,11 @@ class RecommendBolusTests: XCTestCase {

// But not a finished temp
lastTempBasal = DoseEntry(
type: .TempBasal,
type: .tempBasal,
startDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: -35)),
endDate: glucose.first!.startDate.dateByAddingTimeInterval(NSTimeInterval(minutes: -5)),
value: 1.225,
unit: .UnitsPerHour
unit: .unitsPerHour
)

dose = DoseMath.recommendBolusFromPredictedGlucose(glucose,
Expand Down
Loading