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

per #1401 set highest sensitivity on low TT and halfBasal #1403

Merged
merged 1 commit into from
Dec 18, 2021

Conversation

jncchds
Copy link
Contributor

@jncchds jncchds commented Jul 8, 2021

as described in #1401 we have a possibility of zero or negative ratio on low TT and halfBasalTarget.
This ensures that we don't get over the autosens_max even in these situations

getting multiplication less or equal to 0 means that we have a really low target with a really low halfBasalTarget
with low TT and lowTTlowersSensitivity we need autosens_max as a value
we use multiplication instead of the division to avoid "division by zero error"

getting multiplication less or equal to 0 means that we have a really low target with a really low halfBasalTarget
with low TT and lowTTlowersSensitivity we need autosens_max as a value
we use multiplication instead of the division to avoid "division by zero error"
@SeregaYakovlev
Copy link

@scottleibrand, I think that is the best solution of #1401 bug.

Copy link
Contributor

@scottleibrand scottleibrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM. If someone can give it a test on a rig and paste the output, this should be good to merge to dev.

@SeregaYakovlev
Copy link

SeregaYakovlev commented Jul 16, 2021

@scottleibrand, I want test that code and removed the file determine-basal.js from src/oref0/lib/determine-basal/ directory and rebooted the Intel Edison. But OpenAps continues to work. Why?

@scottleibrand
Copy link
Contributor

Generally, this would indicate that you were using a packaged install, rather than an install linked to the source code in src/.

@scottleibrand
Copy link
Contributor

Tested this on a rig, and it doesn't affect sensitivityRatio during normal operation.

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 this pull request may close these issues.

3 participants