MarkMpn / AutotuneWeb

A web interface for running Autotune
45 stars 31 forks source link

Mismatch openaps autotune #35

Open KelvinKramp opened 2 years ago

KelvinKramp commented 2 years ago

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 commented 2 years ago

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

KelvinKramp commented 2 years ago

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