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

remove deprecated support for max_bg and wide_bg_target_range #1345

Merged
merged 2 commits into from
Feb 14, 2020

Conversation

scottleibrand
Copy link
Contributor

Wide BG target ranges result in worse outcomes than a single BG target (at a preferred point within the wider range), as they prevent OpenAPS from taking earlier action to correct high and/or low BG.

In order to simplify code paths, allow for easier testing, and make room for future improvements, this PR removes support for wide_bg_target_range and max_bg, and instead sets target to min_bg (which has been the default behavior for some time).

This PR does not (yet) deprecate separate high and low temporary targets, but that would be an obvious next step.

@scottleibrand
Copy link
Contributor Author

Any objections to this approach? Does anyone use these features? Does anyone want to post to FB to see if anyone there uses it? If no to all of those, I'll go ahead and merge it to dev.

@sulkaharo
Copy link
Collaborator

LGTM. I guess the subsequent pass after this is merged to refactor the code to only have one BG target (and update unit tests accordingly, need to continue on that).

@scottleibrand scottleibrand merged commit 7571845 into dev Feb 14, 2020
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