-
Notifications
You must be signed in to change notification settings - Fork 395
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
Carb ratio of 26 reported as 0.26 in profile.json #432
Comments
This is caused by openaps/openaps#111 - we'll need some folks to help figure out the underlying issue with decocare. |
As a workaround, you could maybe set the carb ratio to 25 at midnight, and then let autotune adjust it upward from there. To make sure you're actually bolusing off the correct carb ratio in the pump, you can then set a 1am carb ratio to the correct value for the rest of the day. @Mackwe |
Thank you @scottleibrand . I believe I don't have enough data yet for autotune to work and letting autosens free to change it about x2(!).. I think I would need to wait for openaps/openaps#111 to get fixed (or fix it myself, but I lack time at the moment). |
I have this issue @scottleibrand @Mackwe @ryanchen26. I troubleshooted with @Kdisimone. I am not running autotune, only autosens. It is causing me to get NaN errors and causes lots of other random errors including OpenAPS will set my temp basal to zero. OpenAPS will also not create a pumpprofile.json file. My son has been running very high in the afternoon and at night. I have a 723. This will affect a lot of little kids with an x23, and I know of at least another one (Leigh Fickling's daughter). My son's carb ratios are almost all above 25 (most are from 30-50) except for one - the one time of day he runs OK. Many thanks. |
I am switching to my 722 for now, but any other workaround ideas would be great - for the community, and like I said especially for the little kids and for people who might not have another pump. Thanks again. |
As a workaround, I could have oref0 multiply any < 1 carb ratios by 100 until someone fixes this properly in openaps/decocare. Our 723 supports 1.0 to 200, and the 522 supports 3.0 to 150, so we know that any reading < 1 is incorrect, and must really represent something in the 25-99 range. I don't know how CRs >= 100 show up, and whether any further adjustments would be needed there. |
Yes! That would work. However, the r value is wrong as well? What is that? Is it used in calculations? |
Does the We don't use |
Ok, just pushed an as-yet-untested commit that implements the workaround. If anyone currently running oref0 dev wants to test it, you can |
I can setup a test rig for this later today |
Here's a correct entry: So I think you could multiply the CR number coming in by 100 and get the ratio number; and you could multiply the CR number coming by 1000 and get the r number. |
@scottleibrand do I also need to do an npm-global-install after the branch change? thus far the fix isn't implementing the *100 |
|
I'm -1 on implementing a workaround of changing carb ratio in oref0 instead of fixing the real problem in decocare or wherever. Please stick to https://en.wikipedia.org/wiki/Separation_of_concerns and make sure oref0 can trust the the carb ratio it gets. If it's not a oref0 bug, it should not be fixed in oref0. |
Just had a quick peek and search. Isn't this the logic where it goes wrong? |
@YYGIRL (or anyone else who's seeing this): could you paste in your full carb_ratios.json, as well as a list of what the carb ratio schedule actually is, so we can figure out how to adjust the https://github.com/openaps/decocare/blob/master/decocare/commands.py#L1000-L1002 logic to fix this properly? |
I submitted openaps/decocare#28, so probably the workaround isn't needed. |
actual are (test pump) |
@Kdisimone Did you check out and install openaps/decocare#28? If so, which commands did you use? |
@scottleibrand I am testing it out. I'm not so git saavy still so I manually edited file with |
I have no idea whether that file is the one actually being used by your system. I would instead clone the decocare repo, get the fixed source code from @moomoobloo's branch using the command-line instructions (the part about how to check out a new branch and test the changes) in the merge section at the bottom of openaps/decocare#28 . Then, once you've verified you have the right source code, you can install that using these directions: Hit me up on Slack or Gitter if you run into any trouble with that... |
OK...I'll try that because it doesn't look like my attempt worked. :) |
Since openaps/decocare#28 was merged to dev, It looks like the only thing remaining to do to resolve this is to release decocare dev to master, and update oref0 to install it. Leaving this open for now until we get closer to that. In the mean time, anyone affected by this issue can simply clone and install decocare dev. |
Leaving the specific commands here for info: For x23 and x54 pumps for carb ratios over 25 and/or ISF over 255:
|
After changing a carb ratio setting in the pump (723) from 25 to 26 and running autotune manually autotune failed to run because of the error: carb ratio 0.26 out of range. The ratio change to 26 had been interpreted as 0.26 in profile.json.
The text was updated successfully, but these errors were encountered: