We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7abf833 commit 309f4c1Copy full SHA for 309f4c1
1 file changed
python_api/python_api.py
@@ -77,9 +77,13 @@ def get_glucose_effect_velocity_dates(json_file):
77
return date_list
78
79
80
+def get_active_carbs(json_file):
81
+ json_bytes = get_bytes_from_json(json_file)
82
83
+ swift_lib.getActiveCarbs.argtypes = [ctypes.c_char_p]
84
+ swift_lib.getActiveCarbs.restype = ctypes.c_double
85
-
86
+ return swift_lib.getActiveCarbs(json_bytes)
87
88
89
@@ -103,5 +107,7 @@ def get_glucose_effect_velocity_dates(json_file):
103
107
glucose_effect_velocity_dates = get_glucose_effect_velocity_dates(json_file)
104
108
print("glucose_effect_velocity_dates", glucose_effect_velocity_dates)
105
109
print(" ")
106
110
+active_carbs = get_active_carbs(json_file)
111
+print("active_carbs", active_carbs)
112
+print(" ")
113
0 commit comments