You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: this bug could possibly lead to carb values being "doubled-up" in the meal-assist algorithm, leading to problems.*
There are apparently situations where openaps-mmhistorytools finds and removes duplicate carb values. (See below for details.)
Currently, if you supply the dev branch with a history that's been cleaned with openaps-mmhistorytools, the meal code doesn't correctly interpret carb values.
This would need to change the oref parsing code to:
Expect a 'munged' data file (ie, by removing the existing code that contains 'Bolus' or 'BolusWizard', so as to break compatibility with files that could contain duplicate information
See if there are any differences in the 'munged' data for Bolus vs BolusWizard values (one expects a bolus value, one expects a carb value)
Find all entries of type "Meal"
Use the 'start_at' value as a replacement for timestamp
Use 'amount' as the 'carbs' value
Check the unit is always 'g' (in case some strange measurement is presented down the line in a different region
I'll check in with Nate about it - but since we're running the latest oref0 setup scripts without this (and things are working ok) I think we can close this.
I'll re-open if it turns out to still be an issue.
Hi
Note: this bug could possibly lead to carb values being "doubled-up" in the meal-assist algorithm, leading to problems.*
There are apparently situations where openaps-mmhistorytools finds and removes duplicate carb values. (See below for details.)
Currently, if you supply the dev branch with a history that's been cleaned with openaps-mmhistorytools, the meal code doesn't correctly interpret carb values.
The mmhistorytools code ejects a value like this:
More examples are at https://github.com/loudnate/openaps-mmhistorytools/blob/master/tests/historytools_tests.py#L970-L979 and https://github.com/loudnate/openaps-mmhistorytools/blob/master/tests/historytools_tests.py#L165 shows a case with bolus wizard duplicates.
https://github.com/openaps/oref0/blob/dev/lib/meal/history.js#L20-L34 is currently where the parsing happens in oref0.
This would need to change the oref parsing code to:
CC @loudnate
The text was updated successfully, but these errors were encountered: