Skip to content

Commit 83ce21e

Browse files
authored
Change algorithmEffectsOptions to .all for generatePrediction
to calculate bgi equivalent a rate is preferred (glucose_effect_velocity). having a genereatePrediction with .all effects might give something to evaluate the effect of the insulin factors vs other factors
1 parent c300387 commit 83ce21e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/LoopAlgorithmToPython/LoopAlgorithmToPython.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public func generatePrediction(jsonData: UnsafePointer<Int8>?) -> UnsafeMutableP
108108
basal: input.basal,
109109
sensitivity: input.sensitivity,
110110
carbRatio: input.carbRatio,
111-
algorithmEffectsOptions: .insulin, // Here we can adjust which predictive factor to output
111+
algorithmEffectsOptions: .all, // Here we can adjust which predictive factor to output
112112
useIntegralRetrospectiveCorrection: input.useIntegralRetrospectiveCorrection,
113113
includingPositiveVelocityAndRC: input.includePositiveVelocityAndRC
114114
)
@@ -176,7 +176,7 @@ public func getPredictionDates(jsonData: UnsafePointer<Int8>?) -> UnsafePointer<
176176
basal: input.basal,
177177
sensitivity: input.sensitivity,
178178
carbRatio: input.carbRatio,
179-
algorithmEffectsOptions: .insulin,
179+
algorithmEffectsOptions: .all,
180180
useIntegralRetrospectiveCorrection: input.useIntegralRetrospectiveCorrection
181181
)
182182
// Prepare prediction dates as a comma-separated string

0 commit comments

Comments
 (0)