From 530844a26885d7d47a09d7b360d33cd7c0374daa Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Sat, 24 Oct 2026 17:42:18 -0500 Subject: [PATCH] Order algorithm experiments by evaluated lift Guard + Runway first, then Glucose Based Partial Application, then Integral Retrospective Correction, by the lift reported in LoopKit/LoopAlgorithm#10 (simulated / replay: +0.86 / +0.99, +0.09 / +0.27, +0.19 / -1.53). --- .../SettingsView+algorithmExperimentsSection.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Loop/Views/SettingsView+algorithmExperimentsSection.swift b/Loop/Views/SettingsView+algorithmExperimentsSection.swift index f956c63586..5ff430b87e 100644 --- a/Loop/Views/SettingsView+algorithmExperimentsSection.swift +++ b/Loop/Views/SettingsView+algorithmExperimentsSection.swift @@ -61,6 +61,11 @@ public struct ExperimentsSettingsView: View { .foregroundColor(.secondary) Divider() + NavigationLink(destination: GuardAndRunwaySelectionView(isGuardAndRunwayEnabled: $isGuardAndRunwayEnabled)) { + ExperimentRow( + name: NSLocalizedString("Guard + Runway", comment: "Title of guard and runway experiment"), + enabled: isGuardAndRunwayEnabled) + } NavigationLink(destination: GlucoseBasedApplicationFactorSelectionView(isGlucoseBasedApplicationFactorEnabled: $isGlucoseBasedApplicationFactorEnabled, automaticDosingStrategy: automaticDosingStrategy)) { ExperimentRow( name: NSLocalizedString("Glucose Based Partial Application", comment: "Title of glucose based partial application experiment"), @@ -71,11 +76,6 @@ public struct ExperimentsSettingsView: View { name: NSLocalizedString("Integral Retrospective Correction", comment: "Title of integral retrospective correction experiment"), enabled: isIntegralRetrospectiveCorrectionEnabled) } - NavigationLink(destination: GuardAndRunwaySelectionView(isGuardAndRunwayEnabled: $isGuardAndRunwayEnabled)) { - ExperimentRow( - name: NSLocalizedString("Guard + Runway", comment: "Title of guard and runway experiment"), - enabled: isGuardAndRunwayEnabled) - } Spacer() } .padding()