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: docs/version/code-custom-edits.md
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
For new Loopers, please build the code before you make any changes. Start with Open Loop and familiarize yourself with the interface. Later, you can make the customization(s) you desire and build again. The second build will be much easier than your first build.
4
4
5
-
These customizations require you modify the *Loop* app code and then build the app after making these customizations. This page supports version 3 and greater for the *Loop* app.
5
+
These customizations require you to modify the *Loop* app code and then build the app after making these customizations. This page supports version 3 and greater for the *Loop* app.
6
6
7
7
## Customization Options
8
8
@@ -25,24 +25,24 @@ Other customizations require that you create your own personalized version.
25
25
26
26
## Instructions for Finding the Lines
27
27
28
-
The instructions on this page identify the module, `Key_Phrase` or file and line numbers required to locate the code you need to modify.
28
+
The instructions on this page identify the module, `Key_Phrase`, or file and line numbers required to locate the code you need to modify.
29
29
30
30
!!! question "Why do I have to jump between pages?"
31
31
* The code changes are defined on this page
32
-
* The method to make code changes depends on build method and are found at:
32
+
* The method to make code changes depends on the build method and is found at:
33
33
* [Custom Edits with Browser](../browser/edit-browser.md){: target="_blank" }
34
34
* [Custom Edits with *Mac*](../build/edit-mac.md){: target="_blank" }
35
35
36
36
!!! info "Line numbers may change"
37
-
Every effort will be made to update the line numbers as the code is updated, but there may be times where the screenshots and line numbers differ from the current version of Loop code.
37
+
Every effort will be made to update the line numbers as the code is updated, but there may be times when the screenshots and line numbers differ from the current version of Loop code.
38
38
39
39
* You may notice some customizations list line numbers for different branches
40
40
41
41
* If you cannot identify a line that looks exactly like the example - do not guess - go to your favorite social media group and ask for help
42
42
43
-
* Sometimes there is a bigger change than just line numbers. The git software is really good about finding the "right" code that is just at a different line number. When you see the notation `Stable: Changed on date`, that means you must select the correct version when making your personal customization depending on which version you are modifying.
43
+
* Sometimes, there is a bigger change than just line numbers. The *git* software is really good about finding the "right" code that is just at a different line number. When you see the notation `Stable: Changed on date`, that means you must select the correct version when making your personal customization, depending on which version you are modifying.
44
44
* With the release of 3.4.x, no customizations fall into this category
45
-
* The notation is kept to handle future changes that might happen when development start again
45
+
* The notation is kept to handle future changes that might happen when development starts again
46
46
47
47
This page is broken into two halves:
48
48
@@ -58,21 +58,21 @@ For each customization, you will be given landmarks to find the correct location
58
58
### Key_Phrase
59
59
60
60
```{ .txt .copy title="Example of a Key_Phrase" }
61
-
use the copy button at right, paste into search
62
-
The copy button for this exampe is just for practice
61
+
use the copy button at right, paste it into the search box
62
+
The copy button for this example is just for practice
63
63
Do not paste the result anywhere
64
64
```
65
65
66
66
To search using the `Key_Phrase` (see graphic above for an example):
67
67
68
-
* A copy button is available when you hover your mouse in the right-hand side
68
+
* A copy button is available when you hover your mouse on the right-hand side
69
69
of the block below the title `Key_Phrase`; click on it to copy the phrase into your paste buffer
70
70
* You can paste this into the search function of the tool you are using if desired (warning, you may have to hit back-space to remove a return character from the pasted text)
71
-
* Alternatively, navigate to the required file using Module, Folder, File and line number
71
+
* Alternatively, navigate to the required file using Module, Folder, File, and line number
72
72
73
73
### Module, Folder, File
74
74
75
-
Each customization provides the Module, Folder and File bullet below the key phrase.
75
+
Each customization provides the Module, Folder, and File bullet below the key phrase.
76
76
77
77
* Module: Loop
78
78
* Folder: Loop/subfolder1/subfolder2/etc.
@@ -111,7 +111,7 @@ There are two customizations, see [Not Stable List](#not-stable-list) that requi
111
111
112
112
#### Not Stable List
113
113
114
-
This list indicates personalized customization that differ between 3.2.3 and 3.4.x:
114
+
This list indicates personalized customizations that differ between 3.2.3 and 3.4.x:
115
115
116
116
* Changed on 2024 Feb 19: 3.4.0: [Glucose Guardrails](#glucose-guardrails){: target="_blank" }
117
117
* Changed on 2023 May 29: 3.4.0: [Adjust Future Carbs Time Interval](#adjust-future-carbs-time-interval){: target="_blank" }
@@ -123,9 +123,9 @@ This list indicates personalized customization that differ between 3.2.3 and 3.4
In prior versions of the *Loop* app, for example version 2.2.x, the lollipop (fast) icon was set for 2 hours, taco (medium) icon for 3 hours, and pizza (slow) icon for 4 hours. This is modified for `the *Loop* app` to 30 minutes, 3 hours and 5 hours respectively. Some people prefer different values.
126
+
In prior versions of the *Loop* app, for example version 2.2.x, the lollipop (fast) icon was set for 2 hours, taco (medium) icon for 3 hours, and pizza (slow) icon for 4 hours. This is modified for `the *Loop* app` to 30 minutes, 3 hours, and 5 hours respectively. Some people prefer different values.
127
127
128
-
If you want to change this to 2, 3 and 5 hours - that is available as a standard customization using the [*Loop and Learn*: Customization Select Script](https://www.loopandlearn.org/custom-code/#custom-list){: target="_blank" }
128
+
If you want to change this to 2, 3, and 5 hours - that is available as a standard customization using the [*Loop and Learn*: Customization Select Script](https://www.loopandlearn.org/custom-code/#custom-list){: target="_blank" }
129
129
130
130
??? question "Do you want to know more? (Click to open/close)"
131
131
The developers did this because they expect fast to only be used for rapid-acting low treatments. The medium and slow values are for moderate and higher-fat or large meals.
@@ -156,7 +156,7 @@ Note that if you change `fast` from 30 minutes to 1.5 hours, you must also chang
156
156
157
157
With version 3.2.0, a new safety feature was added. This limits automatic dosing so IOB is no more than two times the $\mathit{maximumBolus}$ set in your Delivery Limits. (The term automatic dosing refers to insulin the app automatically delivers above your scheduled basal rate.) Manual Bolus, where you initiate the bolus yourself, is not subject to this limit. Please read [How do Delivery Limits Affect Automatic Dosing?](../faqs/algorithm-faqs.md#how-do-delivery-limits-affect-automatic-dosing) for detailed information on how this safety feature works.
158
158
159
-
The default value ($\mathit{2*maximumBolus}$) used for this feature is good for the majority of people who use the app. However, there are some individuals who might need to limit the size of any single bolus independent from the maximum IOB they want to set for their app. This is particularly true for those who find large boluses give rise to tunneling and the insulin leaks out along the cannula.
159
+
The default value ($\mathit{2*maximumBolus}$) used for this feature is good for the majority of people who use the app. However, some individuals might need to limit the size of any single bolus independent of the maximum IOB they want to set for their app. This is particularly true for those who find large boluses give rise to tunneling, and the insulin leaks out along the cannula.
160
160
161
161
```{ .txt .copy title="Key_Phrase" }
162
162
automaticDosingIOBLimit = maxBolus
@@ -189,7 +189,7 @@ If you are mostly happy with the Dosing Strategy of Automatic Bolus but wish it
189
189
190
190
This customization changes the percent of the recommended bolus used for automatic delivery. The method for calculating that recommendation is not changed by this modification. The default value is 40% (0.4). It is recommended you take small changes of 0.1 at a time. Once you modify it once and try it out for a while, it’s easy to go back and change it again.
191
191
192
-
**Change just the number and doublecheck that the value is less than 1.**
192
+
**Change just the number and double-check that the value is less than 1.**
193
193
194
194
```{ .txt .copy title="Key_Phrase" }
195
195
let bolusPartialApplicationFactor
@@ -425,7 +425,7 @@ An example change that a Free Loop App user (who has to build once a week) might
425
425
```
426
426
> .hours(4) ? .days(10) : .hours(2)
427
427
```
428
-
Combined with an ```.hours(12)``` on line 16, they would get notified at 12 hours, 4 hours and 2 hours before expiration on the day of expiration and only when the app is opened. Since you'll be building once a week, you can play around with these values until you are happy.
428
+
Combined with an ```.hours(12)``` on line 16, they would get notified at 12 hours, 4 hours, and 2 hours before expiration on the day of expiration and only when the app is opened. Since you'll be building once a week, you can play around with these values until you are happy.
0 commit comments