瀏覽代碼

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

Increase errors allowed for Autosens
Deniz Cengiz 11 月之前
父節點
當前提交
f8ec696a02
共有 1 個文件被更改,包括 3 次插入4 次删除
  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
             // 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"])
         }
         }
     }
     }
 
 
@@ -76,9 +76,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
             ]
             ]
         }
         }
     }
     }