Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative IOB Factor #12

Open
paddingtonil opened this issue Jan 30, 2023 · 3 comments
Open

Negative IOB Factor #12

paddingtonil opened this issue Jan 30, 2023 · 3 comments

Comments

@paddingtonil
Copy link

I may have noticed suspicious behaviour of the negative IOB factor:
Negative IOB Factor 100% (disabled) = -0.49 (Basal 0.6 u/h suspension 50min)
Negative IOB Factor 50% = - 0.12
Negative IOB Factor 5% = +0.21

IMG_7378
IMG_7376
IMG_7375

@marionbarker
Copy link
Collaborator

This has been open for several months now. @bjorkert - Do you mind taking a look.

@bjorkert
Copy link
Contributor

I'll do some testing. I remember that the negative IOB factor actually affects not only delivered insulin but also the Active insulin display.

@bjorkert
Copy link
Contributor

bjorkert commented Apr 17, 2023

Did some test:

100% -2.48
50% -1.28
5% -0,13

0,05*2.48 = 0,124

The code for this is very simple:

var modifiednetBasalUnits = netBasalUnits

if netBasalUnits < 0.0 {

    modifiednetBasalUnits = netBasalUnits * negativeBasalMultiplier

}

I Can't reproduce the result in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants