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

Enacted ISF incorrect when 15 or greater when using mmol #377

Open
aidanlane opened this issue Mar 2, 2025 · 9 comments
Open

Enacted ISF incorrect when 15 or greater when using mmol #377

aidanlane opened this issue Mar 2, 2025 · 9 comments

Comments

@aidanlane
Copy link

aidanlane commented Mar 2, 2025

Hi team,

Enacted ISF incorrect when 15 or greater when using mmol. See screenshot.
Could it be Trio providing the wrong information?
Anyway to debug that?

Trio 0.2.3 / LoopFollow 0.2.10 / Nightscout Pro

Have noticed this even with LoopFollow 0.2.8, but forgot to raise it earlier.

Thanks!

Image

@aidanlane
Copy link
Author

Just to be abundantly clear, we’re seeing this:
Autosense: 80%
ISF: 12.5 -> 0.9

However, we were expecting this:
Autosense: 80%
ISF: 12.5 -> 15.6

Cheers!

@aidanlane aidanlane changed the title Dynamic ISF incorrect when less than 100% Dynamic ISF incorrect when less than 85% Mar 2, 2025
@aidanlane
Copy link
Author

More examples, above and below 85%

Image
Image
Image

@aidanlane
Copy link
Author

aidanlane commented Mar 2, 2025

Bug appears to be caused by the assumption made here that the determined ISF value should be treated as mmol if and only if the enacted ISF value is below 15. Hence, the determined ISF is incorrect when 15 or greater when using mmol.

@aidanlane aidanlane changed the title Dynamic ISF incorrect when less than 85% Enacted ISF incorrect when 15 or greater Mar 2, 2025
@aidanlane aidanlane changed the title Enacted ISF incorrect when 15 or greater Enacted ISF incorrect when 15 or greater when using mmol Mar 2, 2025
@aidanlane
Copy link
Author

Btw, I've also noticed an assumption in the target, however I don't think that would ever be problematic:

@aidanlane
Copy link
Author

Instead of trying to determine the units based on the value, shouldn’t it use the units from the profile?

@aidanlane
Copy link
Author

Actually, I've noticed that enactedOrSuggested, which comes from OpenAPS (Trio in this case), always, for us at least, provides it's data in mg/L. Is that always the case with the OpenAPS protocol? Trio only?

@aidanlane
Copy link
Author

Using my own hacky patch that assumes the data is in mg/L:

Image

@bjorkert
Copy link
Contributor

bjorkert commented Mar 3, 2025

Hi, thanks for reporting. I will look into it.

@aidanlane
Copy link
Author

Thank you!

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

2 participants