• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openaps / oref0 / 1784
11%
master: 10%

Build:
Build:
LAST BUILD BRANCH: replace-git
DEFAULT BRANCH: master
Ran 10 Jan 2017 01:39AM UTC
Jobs 2
Files 42
Run time 22s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1784

push

travis-ci

web-flow
Iterative autotuning of basals and ratios (#313)

Implements new Autotune feature (https://github.com/openaps/oref0/issues/261)

Commit details:

* oref0-autotune-prep.js

* use oref0/lib/autotune-prep

* don't print autosens debug stuff when running in meal mode

* divide basal_glucose_data from isf_glucose_data at basalBgi > -3 * bgi; comments and TODOs

* bucketize data, calculate deltas and deviations, and use those to better allocate data to csf, isf, or basals

* prep for an optimized append mode to an existing autotune/glucose.json

* initial framework for oref0-autotune.js

* adjust basals for basal deviations

* add bgi to output json

* try including rising BGs in ISF calculations

* initial basic ISF autotuning

* use medians, not averages, for ISF calcs

* add mealCarbs and mealAbsorption start/end

* first pass at CSF estimation

* when avgDelta with large negative BGI, don't use that for ISF or basal tuning

* convert sgv records into glucose if needed

* add support for nightscout treatments.json format

* only consider BGs for 6h before a meal to speed up processing

* properly map sgv to glucose

* add support for carbs from NS

* remove unnecessary clock and basalprofile arguments

* update basalprofile

* profile needs isfProfile not isf_profile

* use min_5m_carbimpact in calculating total deviations too

* way more efficient and simpler iterative algorithm for calculating COB

* add mealCarbs to glucose_data

* make sure new CSF isn't NaN

* disable min deviation for CSF calculation

* smooth out basal adjustments by incrementing evenly and reducing proportionally over 3h

* smooth out basal adjustments by using average of current and last 3 hours as iob_inputs.profile.current_basal

* make sure increases and decreases of basal are both doing the same 20%

* minPossibleDeviation, and actually basal_glucose_data.push when avgDelta > 0

* include Math.max(0,bgi) in ... (continued)

466 of 466 new or added lines in 10 files covered. (100.0%)

742 of 2253 relevant lines covered (32.93%)

246.99 hits per line

Uncovered Changes

Lines Coverage ∆ File
184
100.0
lib/autotune/index.js
146
100.0
lib/autotune-prep/categorize.js
41
100.0
bin/oref0-autotune-prep.js
24
100.0
bin/oref0-autotune-core.js
17
100.0
lib/determine-basal/cob-autosens.js
13
100.0
bin/oref0-get-profile.js
10
100.0
lib/iob/history.js
9
100.0
lib/autotune-prep/index.js
7
100.0
lib/meal/history.js

Coverage Regressions

Lines Coverage ∆ File
1
100.0
lib/determine-basal/cob-autosens.js
1
100.0
bin/oref0-get-profile.js
Jobs
ID Job ID Ran Files Coverage
1 1784.1 10 Jan 2017 01:39AM UTC 0
32.93
Travis Job 1784.1
2 1784.2 10 Jan 2017 01:39AM UTC 0
32.93
Travis Job 1784.2
Source Files on build 1784
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1784
  • 3478f41f on github
  • Prev Build on dev (#1730)
  • Next Build on dev (#1795)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc