Skip to content

Commit

Permalink
disable some debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Jan 8, 2017
1 parent 5e144d1 commit 8d54b18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/autotune/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
function tuneAllTheThings (inputs) {

var previousAutotune = inputs.previousAutotune;
console.error(previousAutotune);
//console.error(previousAutotune);
var pumpProfile = inputs.pumpProfile;
var pumpBasalProfile = pumpProfile.basalprofile;
//console.error(pumpBasalProfile);
Expand All @@ -14,7 +14,7 @@ function tuneAllTheThings (inputs) {
var ISF = isfProfile.sensitivities[0].sensitivity;
//console.error(ISF);
var carbRatio = previousAutotune.carb_ratio;
console.error(carbRatio);
//console.error(carbRatio);
var CSF = ISF / carbRatio;
// conditional on there being a pump profile; if not then skip
if (pumpProfile) { pumpISFProfile = pumpProfile.isfProfile; }
Expand Down Expand Up @@ -103,7 +103,7 @@ function tuneAllTheThings (inputs) {
threeHourBasal += hourlyBasalProfile[offsetHour].rate;
}
var adjustmentRatio = 1.0 + basalNeeded / threeHourBasal;
console.error(adjustmentRatio);
//console.error(adjustmentRatio);
for (var offset=-3; offset < 0; offset++) {
offsetHour = hour + offset;
if (offsetHour < 0) { offsetHour += 24; }
Expand Down Expand Up @@ -206,7 +206,7 @@ function tuneAllTheThings (inputs) {
//console.error(CSF,mealCarbs);
csfRise = CSF * mealCarbs;
//console.error(deviations,ISF);
console.error("csfRise:",csfRise,"deviations:",deviations);
//console.error("csfRise:",csfRise,"deviations:",deviations);
totalMealCarbs += mealCarbs;
totalDeviations += deviations;

Expand Down

0 comments on commit 8d54b18

Please sign in to comment.