Explorar o código

Merge pull request #546 from nightscout/tweak-autosens-matching-thresholds

Increase errors allowed for Autosens
Deniz Cengiz hai 11 meses
pai
achega
f8ec696a02
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  1. 3 4
      Trio/Sources/APS/OpenAPSSwift/Logging/OrefFunction.swift

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

@@ -41,7 +41,7 @@ enum OrefFunction: String, Codable {
             // can ignore them in our comparison
             return Set(["maxDeviation", "minDeviation", "allDeviations", "bwCarbs", "bwFound", "journalCarbs", "nsCarbs"])
         case .autosens:
-            return Set()
+            return Set(["deviationsUnsorted"])
         }
     }
 
@@ -76,9 +76,8 @@ enum OrefFunction: String, Codable {
             ]
         case .autosens:
             return [
-                "ratio": 0.01,
-                "newisf": 1,
-                "deviationsUnsorted": 0.02
+                "ratio": 0.011,
+                "newisf": 1.5
             ]
         }
     }