Skip to content

Conversation

@scottleibrand
Copy link
Contributor

With the low_temptarget_lowers_sensitivity option enabled, oref0 doses more aggressively when an "eating soon" target is set. However, in the current implementation, this becomes much more aggressive with COB, as the adjusted sensitivityRatio is used to adjust CR as well as basal/IOB and ISF. This results in too-aggressive dosing when a low temptarget is started or left running after carb entry.

This PR adjusts the low_temptarget_lowers_sensitivity behavior so that the modified sensitivityRatio does not affected CR, yielding much more intuitive and predictable behavior before vs. after carb entry, and avoiding most of the risk of a low target causing a postprandial low.

@scottleibrand
Copy link
Contributor Author

We've been running this branch for 2 months now and have seen far fewer post-meal hypos after setting low targets.

@scottleibrand
Copy link
Contributor Author

scottleibrand commented Feb 10, 2019

An unrelated test (192, "should calculate IOB without counting time pump suspended in middle of basal") failed on a travis run, but was passing for me locally, and passed when I closed and reopened the PR to force a re-run.

@scottleibrand
Copy link
Contributor Author

Ready to merge this if no objections.

@scottleibrand scottleibrand merged commit 34cd4dc into dev Feb 20, 2019
@scottleibrand scottleibrand deleted the cr-ignores-tt-sr branch February 20, 2019 04:58
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.

2 participants