Skip to content

Commit

Permalink
rT.reason missing colons (:)
Browse files Browse the repository at this point in the history
In some places a space is used instead of a colon.
  • Loading branch information
Jon-b-m authored and scottleibrand committed Apr 18, 2024
1 parent 9b57b06 commit 3430f6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/determine-basal/determine-basal.js
Original file line number Diff line number Diff line change
Expand Up @@ -808,12 +808,12 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
rT.ISF=convert_bg(sens, profile);
rT.CR=round(profile.carb_ratio, 2);
rT.target_bg=convert_bg(target_bg, profile);
rT.reason="COB: " + rT.COB + ", Dev: " + rT.deviation + ", BGI: " + rT.BGI+ ", ISF: " + rT.ISF + ", CR: " + rT.CR + ", minPredBG " + convert_bg(minPredBG, profile) + ", minGuardBG " + convert_bg(minGuardBG, profile) + ", IOBpredBG " + convert_bg(lastIOBpredBG, profile);
rT.reason="COB: " + rT.COB + ", Dev: " + rT.deviation + ", BGI: " + rT.BGI+ ", ISF: " + rT.ISF + ", CR: " + rT.CR + ", minPredBG: " + convert_bg(minPredBG, profile) + ", minGuardBG: " + convert_bg(minGuardBG, profile) + ", IOBpredBG: " + convert_bg(lastIOBpredBG, profile);
if (lastCOBpredBG > 0) {
rT.reason += ", COBpredBG " + convert_bg(lastCOBpredBG, profile);
rT.reason += ", COBpredBG: " + convert_bg(lastCOBpredBG, profile);
}
if (lastUAMpredBG > 0) {
rT.reason += ", UAMpredBG " + convert_bg(lastUAMpredBG, profile)
rT.reason += ", UAMpredBG: " + convert_bg(lastUAMpredBG, profile)
}
rT.reason += "; ";

Expand Down Expand Up @@ -910,7 +910,7 @@ var maxDelta_bg_threshold;
rT.reason += " and minDelta " + convert_bg(minDelta, profile) + " > " + "expectedDelta " + convert_bg(expectedDelta, profile) + "; ";
// predictive low glucose suspend mode: BG is / is projected to be < threshold
} else if ( bg < threshold || minGuardBG < threshold ) {
rT.reason += "minGuardBG " + convert_bg(minGuardBG, profile) + "<" + convert_bg(threshold, profile);
rT.reason += "minGuardBG: " + convert_bg(minGuardBG, profile) + "<" + convert_bg(threshold, profile);
bgUndershoot = target_bg - minGuardBG;
var worstCaseInsulinReq = bgUndershoot / sens;
var durationReq = round(60*worstCaseInsulinReq / profile.current_basal);
Expand Down

0 comments on commit 3430f6b

Please sign in to comment.