Browse Source

Merge branch 'oref-swift' into determine-basal-to-swift-oref

Deniz Cengiz 11 months ago
parent
commit
faf84be337
1 changed files with 3 additions and 5 deletions
  1. 3 5
      Trio/Sources/APS/OpenAPSSwift/Logging/OrefFunction.swift

+ 3 - 5
Trio/Sources/APS/OpenAPSSwift/Logging/OrefFunction.swift

@@ -42,12 +42,11 @@ enum OrefFunction: String, Codable {
             // can ignore them in our comparison
             // can ignore them in our comparison
             return Set(["maxDeviation", "minDeviation", "allDeviations", "bwCarbs", "bwFound", "journalCarbs", "nsCarbs"])
             return Set(["maxDeviation", "minDeviation", "allDeviations", "bwCarbs", "bwFound", "journalCarbs", "nsCarbs"])
         case .autosens:
         case .autosens:
-            return Set()
+            return Set(["deviationsUnsorted"])
         case .determineBasal:
         case .determineBasal:
             // FIXME: Adjust as we go
             // FIXME: Adjust as we go
             return Set([
             return Set([
                 "id",
                 "id",
-                "reason",
                 "units",
                 "units",
                 "insulinReq",
                 "insulinReq",
                 "rate",
                 "rate",
@@ -99,9 +98,8 @@ enum OrefFunction: String, Codable {
             ]
             ]
         case .autosens:
         case .autosens:
             return [
             return [
-                "ratio": 0.01,
-                "newisf": 1,
-                "deviationsUnsorted": 0.02
+                "ratio": 0.011,
+                "newisf": 1.5
             ]
             ]
         case .determineBasal:
         case .determineBasal:
             return [:]
             return [:]