Skip to content

Loop 3 not calculating IOB when switching from Closed to Open Loop? #1920

Description

@tqb43

Describe the bug
I noticed that if I switch from Closed Loop to Open Loop, the insulin that was delivered during closed loop is no longer included in any of the IOB.

I had used Loop for awhile and then had been trying O5. I decided to give Loop 3 (with patches) a go. Last night, after installing I was running everything in open loop with 0 IOB. After a while, my sugar was high so I decided to close the loop and let the system start giving corrections. It rose my basal to 2.5 units for 20 minutes. It was saying my IOB was around 1. I then switched back to open loop as I'm still trying to iron out my settings since it's been awhile. I then noticed that the IOB went back to near 0. The graphs didn't show any of the insulin it had given me. But it was still logged in my event details and on my pump.

Attach an Issue Report
Attached, but generated the report about 12 hours after the incident
Loop Report 2023-02-04 14 48 22-05 00.md

To Reproduce
Steps to reproduce the behavior: Try this:

  1. Open loop for awhile.
  2. Close loop and be sure it's giving you extra insulin
  3. After like 15-20 minutes "open" loop again.
  4. See if it correctly includes the insulin it delivered in the IOB. (May take a cycle to calculate)

Expected behavior
I expected that Loop would still maintain any IOB it gave me while closed, even if I open it back up - as that's how the app worked in the past.

Screenshots
Attached
IMG_0124
IMG_0125

Phone

  • Hardware: Iphone 14
  • OS Version: [e.g. iOS 12.0.1]

Loop Version

  • Version Number: 3.0.0 (101)
  • Repo: [Loop with Patches]

CGM

  • Device: G6
  • Manager app: Dexcom

Pump

  • Manufacturer: Medtronic
  • Model: 522
  • Firmware version: 2.4A1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions