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

Mismatch openaps autotune #35

Open
KelvinKramp opened this issue Jan 5, 2022 · 2 comments
Open

Mismatch openaps autotune #35

KelvinKramp opened this issue Jan 5, 2022 · 2 comments

Comments

@KelvinKramp
Copy link

KelvinKramp commented Jan 5, 2022

Hey Mark,

Super thanks for all your effort and for sharing your work!!

I have been running into a problem. I don't get the same results when I run autotune manually from my computer:

I copied my profile.json to openaps/settings/autotune.json, openaps/settings/pumpprofile.json. and ran:
oref0-autotune-prep myopenaps/autotune/ns-treatments.json myopenaps/autotune/profile.json myopenaps/autotune/ns-entries.{date}.json myopenaps/autotune/profile.json --tune-insulin-curve=true=true --categorize_uam_as_basal=true

I use as startdate "2021-12-30" and as enddate "2022-01-04" (the day of yesterday to synchronize with autotuneWeb) and I get these results:
00:00 | 0.360 | 0.432 | 2
01:00 | 0.360 | 0.432 | 2
02:00 | 0.360 | 0.432 | 2
03:00 | 0.360 | 0.252 | 2
04:00 | 0.360 | 0.252 | 2
05:00 | 0.360 | 0.252 | 2
06:00 | 0.360 | 0.432 | 2
07:00 | 0.380 | 0.456 | 2
08:00 | 0.380 | 0.266 | 2
09:00 | 0.380 | 0.266 | 2
10:00 | 0.380 | 0.456 | 2
11:00 | 0.380 | 0.266 | 2
12:00 | 0.320 | 0.384 | 2
13:00 | 0.290 | 0.348 | 2
14:00 | 0.280 | 0.336 | 2
15:00 | 0.340 | 0.238 | 2
16:00 | 0.360 | 0.432 | 2
17:00 | 0.300 | 0.360 | 2
18:00 | 0.320 | 0.384 | 2
19:00 | 0.320 | 0.384 | 2
20:00 | 0.380 | 0.456 | 2
21:00 | 0.350 | 0.245 | 2
22:00 | 0.330 | 0.231 | 2
23:00 | 0.330 | 0.231 | 2

When I run autotuneWeb on the azure platform I get these results, which seem better

"Based on data entered between 2021-12-30 and 2022-01-04":

Parameter | Pump | Autotune | Days Missing

ISF [mg/dL/U] | 45.000 | 49.923 |
Carb Ratio[g/U]| 16.000 | 14.852 |
00:00 | 0.360 | 0.432 | 1
01:00 | 0.360 | 0.432 | 1
02:00 | 0.360 | 0.432 | 1
03:00 | 0.360 | 0.432 | 1
04:00 | 0.360 | 0.432 | 1
05:00 | 0.360 | 0.432 | 1
06:00 | 0.360 | 0.434 | 2
07:00 | 0.380 | 0.454 | 2
08:00 | 0.380 | 0.454 | 2
09:00 | 0.380 | 0.456 | 1
10:00 | 0.380 | 0.436 | 0
11:00 | 0.380 | 0.369 | 1
12:00 | 0.320 | 0.286 | 0
13:00 | 0.290 | 0.241 | 1
14:00 | 0.280 | 0.259 | 1
15:00 | 0.340 | 0.291 | 0
16:00 | 0.360 | 0.330 | 0
17:00 | 0.300 | 0.280 | 1
18:00 | 0.320 | 0.320 | 3
19:00 | 0.320 | 0.320 | 3
20:00 | 0.380 | 0.358 | 1
21:00 | 0.350 | 0.387 | 1
22:00 | 0.330 | 0.396 | 1
23:00 | 0.330 | 0.396 | 1

Do you have an idea what I'm doing wrong?

@MarkMpn
Copy link
Owner

MarkMpn commented Jan 5, 2022

AutotuneWeb can show the options it uses to run Autotune with that should get you the same results. The only other variables should be:

  • --categorize-uam-as-basal parameter - AutotuneWeb sets this to true or false depending on your selection on the web page
  • The time zone that the script is run under. The time zone is stored in the profile but the script uses the current time zone of the user
  • min_5m_carbimpact - this value in the profile.json is set based on the value in the web page, and defaults to 8
  • curve - this value in the profile.json indicates the type of insulin being used. It should be set to either rapid-acting or ultra-rapid

@KelvinKramp KelvinKramp changed the title Discrepancy openaps Mismatch openaps Jan 5, 2022
@KelvinKramp KelvinKramp changed the title Mismatch openaps Mismatch openaps autotune Jan 5, 2022
@KelvinKramp
Copy link
Author

Awesome! Thanks for the quick response. Im gonna check if i can get things right. :-D

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

No branches or pull requests

2 participants