소스 검색

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
             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
             ]
         }
     }