Skip to content

Commit 97fb522

Browse files
committed
Smallfix docs
1 parent 39fba3f commit 97fb522

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

loop_to_python_api/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def add_insulin_counteraction_effect_to_df(df, basal, isf, cr, insulin_type='nov
145145
:param insulin_type: Which insulin profile to use to compute the insulin on board
146146
:param batch_size: How many samples to include in each batch operation. Might be reduced / increased, but default is optimized for general settings.
147147
:param overlap: How many time steps to use for computing insulin activity. Can be reduced for some types of insulin, which will improve performance.
148-
:return: The input df with columns for insulin on board and insulin counteraction effects.
148+
:return: The input df with columns for insulin on board and insulin counteraction effects. Unit of ICE is mg/dL*s
149149
"""
150150
data = df[['basal', 'bolus', 'CGM']].copy() # Extract only necessary data to improve performance
151151
data.loc[:, 'bolus'] = data['bolus'].replace(0.0, np.nan)

python_tests/tests.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ def get_dynamic_carbs_input():
3535

3636
def test_initialize_exception_handlers():
3737
result = initialize_exception_handlers()
38-
assert result is None # Replace with the expected result
38+
assert result is None
3939

4040

4141
def test_generate_prediction():
4242
prediction_input = get_generate_prediction_input()
4343
prediction_values = generate_prediction(prediction_input)
44-
assert isinstance(prediction_values, list) # Replace with the expected type or value
44+
assert isinstance(prediction_values, list)
4545

4646

4747
def test_get_prediction_dates():
4848
prediction_input = get_generate_prediction_input()
4949
prediction_dates = get_prediction_dates(prediction_input)
50-
assert isinstance(prediction_dates, list) # Replace with the expected type or value
50+
assert isinstance(prediction_dates, list)
5151

5252

5353
def test_get_prediction_values_and_dates():
@@ -64,19 +64,19 @@ def test_get_prediction_values_and_dates():
6464
def test_get_dose_recommendations():
6565
loop_algorithm_input = get_loop_algorithm_input()
6666
dose_recommendations = get_dose_recommendations(loop_algorithm_input)
67-
assert isinstance(dose_recommendations, dict) # Replace with the expected type or value
67+
assert isinstance(dose_recommendations, dict)
6868

6969

7070
def test_get_glucose_effect_velocity():
7171
prediction_input = get_generate_prediction_input()
7272
glucose_effect_velocity = get_glucose_effect_velocity(prediction_input)
73-
assert isinstance(glucose_effect_velocity, list) # Replace with the expected type or value
73+
assert isinstance(glucose_effect_velocity, list)
7474

7575

7676
def test_get_glucose_effect_velocity_dates():
7777
prediction_input = get_generate_prediction_input()
7878
glucose_effect_velocity_dates = get_glucose_effect_velocity_dates(prediction_input)
79-
assert isinstance(glucose_effect_velocity_dates, list) # Replace with the expected type or value
79+
assert isinstance(glucose_effect_velocity_dates, list)
8080

8181

8282
def test_get_glucose_effect_velocity_values_and_dates():
@@ -92,33 +92,33 @@ def test_get_glucose_effect_velocity_values_and_dates():
9292
def test_get_active_carbs():
9393
loop_algorithm_input = get_loop_algorithm_input()
9494
active_carbs = get_active_carbs(loop_algorithm_input)
95-
assert isinstance(active_carbs, float) # Replace with the expected type or value
95+
assert isinstance(active_carbs, float)
9696

9797

9898
def test_get_active_insulin():
9999
loop_algorithm_input = get_loop_algorithm_input()
100100
active_insulin = get_active_insulin(loop_algorithm_input)
101-
assert isinstance(active_insulin, float) # Replace with the expected type or value
101+
assert isinstance(active_insulin, float)
102102

103103

104104
def test_percent_absorption_at_percent_time():
105105
result = percent_absorption_at_percent_time(0.2)
106-
assert isinstance(result, float) # Replace with the expected type or value
106+
assert isinstance(result, float)
107107

108108

109109
def test_piecewise_linear_percent_rate_at_percent_time():
110110
result = piecewise_linear_percent_rate_at_percent_time(0.2)
111-
assert isinstance(result, float) # Replace with the expected type or value
111+
assert isinstance(result, float)
112112

113113

114114
def test_linear_percent_rate_at_percent_time():
115115
result = linear_percent_rate_at_percent_time(0.2)
116-
assert isinstance(result, float) # Replace with the expected type or value
116+
assert isinstance(result, float)
117117

118118

119119
def test_get_dynamic_carbs_on_board():
120120
dynamic_carbs_input = get_dynamic_carbs_input()
121121
dynamic_carbs_on_board = get_dynamic_carbs_on_board(dynamic_carbs_input)
122-
assert isinstance(dynamic_carbs_on_board, float) # Replace with the expected type or value
122+
assert isinstance(dynamic_carbs_on_board, float)
123123

124124

0 commit comments

Comments
 (0)