diff --git a/Sources/LoopAlgorithmToPython/LoopAlgorithmToPython.swift b/Sources/LoopAlgorithmToPython/LoopAlgorithmToPython.swift index 178ea19..ef53400 100644 --- a/Sources/LoopAlgorithmToPython/LoopAlgorithmToPython.swift +++ b/Sources/LoopAlgorithmToPython/LoopAlgorithmToPython.swift @@ -108,7 +108,7 @@ public func generatePrediction(jsonData: UnsafePointer?) -> UnsafeMutableP basal: input.basal, sensitivity: input.sensitivity, carbRatio: input.carbRatio, - algorithmEffectsOptions: .all, // Here we can adjust which predictive factor to output + algorithmEffectsOptions: .insulin, // Here we can adjust which predictive factor to output useIntegralRetrospectiveCorrection: input.useIntegralRetrospectiveCorrection, includingPositiveVelocityAndRC: input.includePositiveVelocityAndRC ) @@ -176,7 +176,7 @@ public func getPredictionDates(jsonData: UnsafePointer?) -> UnsafePointer< basal: input.basal, sensitivity: input.sensitivity, carbRatio: input.carbRatio, - algorithmEffectsOptions: .all, + algorithmEffectsOptions: .insulin, useIntegralRetrospectiveCorrection: input.useIntegralRetrospectiveCorrection ) // Prepare prediction dates as a comma-separated string @@ -246,7 +246,7 @@ public func getGlucoseEffectVelocity(jsonData: UnsafePointer?) -> UnsafeMu basal: input.basal, sensitivity: input.sensitivity, carbRatio: input.carbRatio, - algorithmEffectsOptions: .all, // Here we can adjust which predictive factor to output + algorithmEffectsOptions: .insulin, // Here we can adjust which predictive factor to output useIntegralRetrospectiveCorrection: input.useIntegralRetrospectiveCorrection ) var glucoseEffectVelocities: [Double] = [] @@ -278,7 +278,7 @@ public func getGlucoseEffectVelocityDates(jsonData: UnsafePointer?) -> Uns basal: input.basal, sensitivity: input.sensitivity, carbRatio: input.carbRatio, - algorithmEffectsOptions: .all, + algorithmEffectsOptions: .insulin, useIntegralRetrospectiveCorrection: input.useIntegralRetrospectiveCorrection ) diff --git a/loop_to_python_api/dlibs/windows/libLoopAlgorithmToPython.dll b/loop_to_python_api/dlibs/windows/libLoopAlgorithmToPython.dll index 7108f79..b4c6bcd 100644 Binary files a/loop_to_python_api/dlibs/windows/libLoopAlgorithmToPython.dll and b/loop_to_python_api/dlibs/windows/libLoopAlgorithmToPython.dll differ