Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Loop
Submodule Loop updated 175 files
2 changes: 1 addition & 1 deletion LoopAlgorithm
Submodule LoopAlgorithm updated 82 files
+17 −0 README.md
+25 −6 Sources/LoopAlgorithm/AlgorithmInput.swift
+22 −30 Sources/LoopAlgorithm/AlgorithmInputFixture.swift
+5 −1 Sources/LoopAlgorithm/AlgorithmOutput.swift
+20 −10 Sources/LoopAlgorithm/Carbs/AbsorbedCarbValue.swift
+8 −0 Sources/LoopAlgorithm/Carbs/CarbEntry.swift
+40 −2 Sources/LoopAlgorithm/Carbs/CarbMath.swift
+2 −2 Sources/LoopAlgorithm/Carbs/CarbStatus.swift
+1 −1 Sources/LoopAlgorithm/Carbs/CarbValue.swift
+14 −5 Sources/LoopAlgorithm/Carbs/FixtureCarbEntry.swift
+37 −7 Sources/LoopAlgorithm/Experiments/AlgorithmExperiments.swift
+65 −4 Sources/LoopAlgorithm/Experiments/ExperimentalForecastAdjustments.swift
+12 −2 Sources/LoopAlgorithm/Experiments/GuardAndRunwayOutput.swift
+1 −1 Sources/LoopAlgorithm/Extensions/ClosedRange.swift
+16 −7 Sources/LoopAlgorithm/Glucose/FixtureGlucoseSample.swift
+14 −12 Sources/LoopAlgorithm/Glucose/GlucoseChange.swift
+0 −12 Sources/LoopAlgorithm/Glucose/GlucoseCondition.swift
+9 −5 Sources/LoopAlgorithm/Glucose/GlucoseEffect.swift
+15 −18 Sources/LoopAlgorithm/Glucose/GlucoseEffectVelocity.swift
+1 −1 Sources/LoopAlgorithm/Glucose/GlucoseMath.swift
+0 −6 Sources/LoopAlgorithm/Glucose/GlucoseSampleValue.swift
+29 −13 Sources/LoopAlgorithm/Glucose/GlucoseValue.swift
+31 −3 Sources/LoopAlgorithm/Insulin/DoseMath.swift
+44 −5 Sources/LoopAlgorithm/Insulin/InsulinMath.swift
+1 −1 Sources/LoopAlgorithm/Insulin/InsulinValue.swift
+16 −14 Sources/LoopAlgorithm/Insulin/PrecomputedInsulinInput.swift
+204 −69 Sources/LoopAlgorithm/LoopAlgorithm.swift
+1 −1 Sources/LoopAlgorithm/LoopMath.swift
+24 −22 Sources/LoopAlgorithm/LoopPredictionInput.swift
+12 −8 Sources/LoopAlgorithm/LoopQuantity.swift
+6 −6 Sources/LoopAlgorithm/LoopUnit.swift
+7 −7 Sources/LoopAlgorithm/RetrospectiveCorrection/IntegralRetrospectiveCorrection.swift
+6 −6 Sources/LoopAlgorithm/RetrospectiveCorrection/RetrospectiveCorrection.swift
+4 −4 Sources/LoopAlgorithm/RetrospectiveCorrection/StandardRetrospectiveCorrection.swift
+3 −3 Sources/LoopAlgorithm/SampleValue.swift
+1 −1 Sources/LoopAlgorithmRunner/main.swift
+2 −2 Tests/LoopAlgorithmTests/AlgorithmEmulationTests.swift
+112 −28 Tests/LoopAlgorithmTests/AlgorithmExperimentsTests.swift
+50 −50 Tests/LoopAlgorithmTests/CorrectionDosingTests.swift
+66 −0 Tests/LoopAlgorithmTests/DateRoundingTests.swift
+351 −0 Tests/LoopAlgorithmTests/DoseHistoryTests.swift
+44 −0 Tests/LoopAlgorithmTests/Fixtures/basal.json
+467 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_carb_effect_input.json
+6 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_glucose_input.json
+527 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_insulin_effect_input.json
+20 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_momentum_blend_glucose_input.json
+37 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_momentum_blend_insulin_effect_input.json
+7 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_momentum_blend_momentum_input.json
+1 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_momentum_blend_output.json
+37 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_momentum_down_input.json
+1 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_momentum_down_output.json
+6 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_momentum_flat_glucose_input.json
+37 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_momentum_flat_input.json
+1 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_momentum_flat_output.json
+37 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_momentum_up_input.json
+1 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_momentum_up_output.json
+1 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_no_momentum_output.json
+157 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_non_zero_carb_input.json
+7 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_non_zero_glucose_input.json
+272 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_non_zero_insulin_input.json
+277 −0 Tests/LoopAlgorithmTests/Fixtures/glucose_from_effects_non_zero_output.json
+112 −0 Tests/LoopAlgorithmTests/Fixtures/ice_minus_carb_effect_with_gaps_output.json
+42 −0 Tests/LoopAlgorithmTests/Fixtures/ice_minus_flat_carb_effect_output.json
+642 −0 Tests/LoopAlgorithmTests/Fixtures/iob_from_doses_exponential_output.json
+1 −0 Tests/LoopAlgorithmTests/Fixtures/iob_from_doses_output.json
+1,832 −0 Tests/LoopAlgorithmTests/Fixtures/iob_from_multiple_curves_output.json
+557 −0 Tests/LoopAlgorithmTests/Fixtures/iob_from_reservoir_output.json
+16 −0 Tests/LoopAlgorithmTests/Fixtures/normalize_edge_case_doses_input.json
+18 −0 Tests/LoopAlgorithmTests/Fixtures/normalize_edge_case_doses_mutable_input.json
+42 −0 Tests/LoopAlgorithmTests/Fixtures/normalize_edge_case_doses_mutable_output.json
+37 −0 Tests/LoopAlgorithmTests/Fixtures/normalize_edge_case_doses_output.json
+171 −0 Tests/LoopAlgorithmTests/Fixtures/normalized_doses.json
+434 −0 Tests/LoopAlgorithmTests/Fixtures/normalized_reservoir_history_output.json
+434 −0 Tests/LoopAlgorithmTests/Fixtures/reservoir_history_with_rewind_and_prime_output.json
+9 −0 Tests/LoopAlgorithmTests/Fixtures/suspend_dose_reconciled.json
+9 −0 Tests/LoopAlgorithmTests/Fixtures/suspend_dose_reconciled_normalized.json
+1 −0 Tests/LoopAlgorithmTests/Fixtures/suspend_dose_reconciled_normalized_iob.json
+5 −9 Tests/LoopAlgorithmTests/GlucoseMathTests.swift
+79 −44 Tests/LoopAlgorithmTests/LoopAlgorithmTests.swift
+522 −0 Tests/LoopAlgorithmTests/LoopMathEffectsTests.swift
+3 −3 Tests/LoopAlgorithmTests/Mocks/LoopAlgorithmInputMock.swift
+20 −28 Tests/LoopAlgorithmTests/PrecomputedInsulinInputTests.swift
2 changes: 1 addition & 1 deletion LoopKit
Submodule LoopKit updated 244 files