-
Notifications
You must be signed in to change notification settings - Fork 2.7k
overlay bg parabola as line graph #4149
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
base: dev
Are you sure you want to change the base?
overlay bg parabola as line graph #4149
Conversation
# Conflicts: # core/ui/src/main/res/values-night/colors.xml # core/ui/src/main/res/values-night/styles.xml # core/ui/src/main/res/values/attrs.xml # core/ui/src/main/res/values/colors.xml # core/ui/src/main/res/values/styles.xml # plugins/main/src/main/kotlin/app/aaps/plugins/main/general/overview/OverviewMenusImpl.kt # plugins/main/src/main/res/values/strings.xml
|
generaly I'm OK with this but as there is more and more code related only to one specific alg, we should make this code (and others) performed only when it's needed |
|
check this a6dfb3c |
|
Yes, inserting visibility makes things a bit easier than my solution. The main impact will be when I add more graphics for key AutoISF parameters. I'll adapt my approach so all use the same for the same purpose. On a first read I have 2 comments:
|
|
|
I did one more update to allow resolve visibilty dynamically |
…abola # Conflicts: # plugins/main/src/main/kotlin/app/aaps/plugins/main/general/overview/OverviewMenusImpl.kt
|
Tonight I wanted to pull it all together. However, GlucoseStatusProvider no longer contains the AutoIsf pecific results for the parabola. It appears you moved that and I have no idea how to get that into OverviewMenusImpl. I tried with GlucoseStatusAutoIsf, but then dagger does not know about it ... This is beyond my Kotlin skills. I could try with some hint. Gemini speaks double dutch. Never mind, I got over that hurdle. |
…Line' into 3330-dev-b/dev_plotParabola # Conflicts: # plugins/main/src/main/kotlin/app/aaps/plugins/main/general/overview/OverviewFragment.kt # plugins/main/src/main/kotlin/app/aaps/plugins/main/general/overview/OverviewMenusImpl.kt
|
…Line' into 3330-dev-b/overlayBgParabolaAsLine
|
|
With my last edit the header VSENS is no longer shown even when plugin is switched which makes it invisible implicitly. |





What does it do? In the main graph it shows the result of the parabola which best fitted the recent BG history. It goes backwards from now by as many minutes as were included in this optimal fit. If showing predictions is enabled, too, then it also shows the extrapolation from now for the next 20 minute as a dotted line. If the fit was unsatisfactory at this point in time then no curve is shown.
For the AutoISF algorithm this parabola is a key information. Having used this display for some weeks it was surprising how a very short glance shows what is happening right now. While the BG points may go fairly straight up or down the fitted parabola may already show that the end of that trend is near.
For the other APS algorithms it is one more alternative to the existing predictions even when the code does not take any action based on it. Users who feel confused can deselect it in the graph menu. For the future I plan to use the parabola data to calculate smoother values for delta and short average delta benefitting all algorithms.