Skip to content

Commit

Permalink
change basalProfile back to basalprofile to match pumpprofile.json
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Jan 8, 2017
1 parent e304e6b commit 4175e12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/autotune/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ function tuneAllTheThings (inputs) {

var previousAutotune = inputs.previousAutotune;
var pumpProfile = inputs.pumpProfile;
var pumpBasalProfile = pumpProfile.basalProfile;
var pumpBasalProfile = pumpProfile.basalprofile;
//console.error(pumpBasalProfile);
var basalProfile = previousAutotune.basalProfile;
var basalProfile = previousAutotune.basalprofile;
//console.error(basalProfile);
var isfProfile = previousAutotune.isfProfile;
//console.error(isfProfile);
Expand Down Expand Up @@ -247,7 +247,7 @@ function tuneAllTheThings (inputs) {

// reconstruct updated version of previousAutotune as autotuneOutput
autotuneOutput = previousAutotune;
autotuneOutput.basalProfile = basalProfile;
autotuneOutput.basalprofile = basalProfile;
isfProfile.sensitivities[0].sensitivity = ISF;
autotuneOutput.isfProfile = isfProfile;
autotuneOutput.sens = ISF;
Expand Down

0 comments on commit 4175e12

Please sign in to comment.