-
Notifications
You must be signed in to change notification settings - Fork 401
Open
Description
Function convert_bg
| function convert_bg(value, profile) |
results in bg-related objects of rT
oref0/lib/determine-basal/determine-basal.js
Line 801 in acb0150
| rT.reason="COB: " + meal_data.mealCOB + ", Dev: " + convert_bg(deviation, profile) + ", BGI: " + convert_bg(bgi, profile) + ", ISF: " + convert_bg(sens, profile) + ", CR: " + round(profile.carb_ratio, 2) + ", Target: " + convert_bg(target_bg, profile) + ", minPredBG " + convert_bg(minPredBG, profile) + ", minGuardBG " + convert_bg(minGuardBG, profile) + ", IOBpredBG " + convert_bg(lastIOBpredBG, profile); |
being treated differently if user uses mmol/l or if user display in mg/dl. Variables in mg/dl will be numbers, those converted in mmol/l by above function will be strings. Subsequential usage of rT must then differentiate between these different definitions. This can be avoided by omitting the string formating in function
convert_bgMetadata
Metadata
Assignees
Labels
No labels