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
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -259,10 +259,25 @@ Fetches the dynamic carbohydrates on board based on the provided JSON input.
259
259
-`json_file`: The JSON data input. See python tests and test files for example inputs.
260
260
-**Returns**: The dynamic carbohydrates on board as a double.
261
261
262
+
⚠️ **Known Issue**: This function currently has a unit conversion error and may fail with "Conversion Error: g is not compatible with mg/dL·s". See the Known Issues section below for more details.
263
+
262
264
-------------------------
263
265
266
+
## Known Issues
267
+
268
+
### `get_dynamic_carbs_on_board()` Function
269
+
270
+
**Issue**: Unit conversion error preventing function execution
271
+
**Error Message**: `LoopAlgorithm/LoopQuantity.swift:31: Fatal error: Conversion Error: g is not compatible with mg/dL·s`
272
+
**Status**: Under investigation
273
+
274
+
**Description**: The `get_dynamic_carbs_on_board()` function encounters a unit conversion error when attempting to calculate dynamic carbohydrates on board. The error occurs in the underlying LoopAlgorithm library when trying to convert between gram units (for carbohydrates) and glucose rate units (mg/dL per second).
275
+
276
+
**Workaround**: Currently, no workaround is available. The function exists in the API for future compatibility but should not be used in production until this issue is resolved.
264
277
278
+
**Test Status**: The corresponding test (`test_get_dynamic_carbs_on_board`) is skipped in the test suite to prevent CI failures.
0 commit comments