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

openaps / oref0 / 1784 / 2
11%
master: 10%

Build:
Build:
LAST BUILD BRANCH: replace-git
DEFAULT BRANCH: master
Ran 10 Jan 2017 01:39AM UTC
Files 42
Run time 2s
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

10 Jan 2017 01:38AM UTC coverage: 32.934% (-7.9%) from 40.806%
1784.2

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)

742 of 2253 relevant lines covered (32.93%)

123.5 hits per line

Source Files on job 1784.2
  • Tree
  • List 0
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1784
  • Travis Job 1784.2
  • 3478f41f on github
  • Prev Job for on dev (#1730.2)
  • Next Job for on dev (#1795.2)
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