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

Excessive limitation checks and logging when Custom Peak time below limit of active insulin curve #1436

Open
mountrcg opened this issue Oct 20, 2022 · 8 comments

Comments

@mountrcg
Copy link
Contributor

Describe the bug
When running on an insulin curve = rapid-acting and enabling a custom peak time of 48 min, which is under the defined minimum of 50mg/dl excessive logging will start at every loop displaying :
JavaScript log: Setting minimum Insulin Peak Time of 50m for,rapid-acting,insulin
150 times every second for up to 60s resulting in 75% failed loops.
This happened when I switched back from Lyumjev and missed disabling the custom peak time.

Expected behavior
change once and display once per loop cycle

Setup Information (please complete the following information):

  • Pump type Omnipod
  • CGM type G6
  • Rig type iPhione
  • oref0 v0.7.1-dev on FreeAPS-X

Additional context
the logging happens in the denomination with OpenAPS, so it is a result of determine-basal in conjunction with the other js-files meal iob etc, where I found above mentioned string.

@scottleibrand
Copy link
Contributor

If you’re seeing this in FreeAPS-X, you should probably open an issue there, and once the problem is identified and fixed, see if any changes need to be upstreamed here to oref0.

Alternatively you could try to reproduce the problem in oref0 itself, but based on your hardware I think you’d have compatibility issues trying that.

@mountrcg
Copy link
Contributor Author

FreeAPS-X just uses the standard OpenAPS, I think the problem should arise on pi-Rig as well. Yes I cannot test, can you? Reproduction should be easy

curve: "rapid-acting" ,
useCustomPeakTime: true,
insulinPeakTime: 48,

@ChanceHarrison
Copy link

This issue is partially reproducible on my Pi rig. I see the log spam in /var/log/openaps/shared-node.log but you wouldn't know it from looking at /var/log/openaps/pump-loop.log. It doesn't cause any loop failures on the Pi. I am working on a fix.

@ChanceHarrison
Copy link

This issue can be closed; it would have been closed automatically but the PR was "closed" instead of "merged" despite the changes being committed to dev.

@scottleibrand scottleibrand mentioned this issue Jan 17, 2023
1 task
@scottleibrand scottleibrand reopened this Mar 5, 2023
@scottleibrand
Copy link
Contributor

scottleibrand commented Mar 5, 2023

Per #1437 (comment) I had to revert this fix via 10f9e27

The new code was causing future IOB predictions to be incorrect (highly negative).
That causes the predBG lines to swoop up and to the right.
That results in (slightly) too much insulin being dosed in some situations.

@mountrcg
Copy link
Contributor Author

@ChanceHarrison or @scottleibrand is there another solution on the horizon?

@scottleibrand
Copy link
Contributor

I am not working on the issue. Would you like to?

@mountrcg
Copy link
Contributor Author

No unfortunatly those interaction with the other files are above my laymans skill level.

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

Successfully merging a pull request may close this issue.

3 participants