Skip to content

Commit 6b3fe05

Browse files
authored
Merge pull request #15 from disouzam/minor-improvement-suggestions
Minor improvement suggestions
2 parents b9802f1 + ea55dc2 commit 6b3fe05

14 files changed

Lines changed: 41 additions & 85 deletions

content/04_111_model.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,21 @@
102102
" Simulates the service process for a call operator\n",
103103
"\n",
104104
" 1. request and wait for a call operator\n",
105-
" 2. phone triage (triangular)\n",
105+
" 2. phone triage (triangular distribution)\n",
106106
" 3. exit system\n",
107107
" \n",
108108
" Params:\n",
109109
" ------\n",
110110
" \n",
111111
" identifier: int \n",
112-
" A unique identifer for this caller\n",
112+
" A unique identifier for this caller\n",
113113
" \n",
114114
" operators: simpy.Resource\n",
115115
" The pool of call operators that answer calls\n",
116116
" These are shared across resources.\n",
117117
" \n",
118118
" env: simpy.Environment\n",
119-
" The current environent the simulation is running in\n",
119+
" The current environment the simulation is running in\n",
120120
" We use this to pause and restart the process after a delay.\n",
121121
"\n",
122122
" service_rng: numpy.random.Generator\n",

content/05_basic_results.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,21 +142,21 @@
142142
" Simulates the service process for a call operator\n",
143143
"\n",
144144
" 1. request and wait for a call operator\n",
145-
" 2. phone triage (triangular)\n",
145+
" 2. phone triage (triangular distribution)\n",
146146
" 3. exit system\n",
147147
" \n",
148148
" Params:\n",
149149
" ------\n",
150150
" \n",
151151
" identifier: int \n",
152-
" A unique identifer for this caller\n",
152+
" A unique identifier for this caller\n",
153153
" \n",
154154
" operators: simpy.Resource\n",
155155
" The pool of call operators that answer calls\n",
156156
" These are shared across resources.\n",
157157
" \n",
158158
" env: simpy.Environment\n",
159-
" The current environent the simulation is running in\n",
159+
" The current environment the simulation is running in\n",
160160
" We use this to pause and restart the process after a delay.\n",
161161
"\n",
162162
" service_rng: numpy.random.Generator\n",

content/06a_basic_results_exercise.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@
154154
" ------\n",
155155
" \n",
156156
" identifier: int \n",
157-
" A unique identifer for this caller\n",
157+
" A unique identifier for this caller\n",
158158
" \n",
159159
" operators: simpy.Resource\n",
160160
" The pool of call operators that answer calls\n",
161161
" These are shared across resources.\n",
162162
" \n",
163163
" env: simpy.Environment\n",
164-
" The current environent the simulation is running in\n",
164+
" The current environment the simulation is running in\n",
165165
" We use this to pause and restart the process after a delay.\n",
166166
" \n",
167167
" '''\n",

content/06b_basic_results_solutions.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,14 @@
150150
" ------\n",
151151
" \n",
152152
" identifier: int \n",
153-
" A unique identifer for this caller\n",
153+
" A unique identifier for this caller\n",
154154
" \n",
155155
" operators: simpy.Resource\n",
156156
" The pool of call operators that answer calls\n",
157157
" These are shared across resources.\n",
158158
" \n",
159159
" env: simpy.Environment\n",
160-
" The current environent the simulation is running in\n",
160+
" The current environment the simulation is running in\n",
161161
" We use this to pause and restart the process after a delay.\n",
162162
" \n",
163163
" '''\n",

content/07_experiments.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"\n",
2020
"All of these approaches work well and it really is a matter of judgement on what you prefer. One downside of a python `dict` and a custom class is that they are both mutable (although a class can have custom properties where users can only access 'viewable' attributes). A dataclass can easily be made immutable and requires less code than a custom class, but has the downside that its syntax is a little less pythonic. Here we will build a parameter class called `Experiment`. \n",
2121
"\n",
22-
"> ☺️ We will also use this re-organisation of code to elimiate our global variables!"
22+
"> ☺️ We will also use this re-organisation of code to eliminate our global variables!"
2323
]
2424
},
2525
{
@@ -75,7 +75,7 @@
7575
"N_STREAMS = 2\n",
7676
"DEFAULT_RND_SET = 0\n",
7777
"\n",
78-
"# Boolean switch to simulation results as the model runs\n",
78+
"# Boolean switch to display simulation results as the model runs\n",
7979
"TRACE = False\n",
8080
"\n",
8181
"# run variables\n",
@@ -217,7 +217,7 @@
217217
" An Experiment:\n",
218218
" 1. Contains a list of parameters that can be left as defaults or varied\n",
219219
" 2. Provides a place for the experimentor to record results of a run \n",
220-
" 3. Controls the set & streams of psuedo random numbers used in a run.\n",
220+
" 3. Controls the set & streams of pseudo random numbers used in a run.\n",
221221
" \n",
222222
" \"\"\"\n",
223223
"\n",
@@ -442,10 +442,10 @@
442442
" ------\n",
443443
"\n",
444444
" identifier: int\n",
445-
" A unique identifer for this caller\n",
445+
" A unique identifier for this caller\n",
446446
"\n",
447447
" env: simpy.Environment\n",
448-
" The current environent the simulation is running in\n",
448+
" The current environment the simulation is running in\n",
449449
" We use this to pause and restart the process after a delay.\n",
450450
"\n",
451451
" args: Experiment\n",

content/08_full_model.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"DEFAULT_RND_SET = 0\n",
9696
"# ##############################################################################\n",
9797
"\n",
98-
"# Boolean switch to simulation results as the model runs\n",
98+
"# Boolean switch to display simulation results as the model runs\n",
9999
"TRACE = False\n",
100100
"\n",
101101
"# run variables\n",
@@ -349,7 +349,7 @@
349349
" An Experiment:\n",
350350
" 1. Contains a list of parameters that can be left as defaults or varied\n",
351351
" 2. Provides a place for the experimentor to record results of a run\n",
352-
" 3. Controls the set & streams of psuedo random numbers used in a run.\n",
352+
" 3. Controls the set & streams of pseudo random numbers used in a run.\n",
353353
"\n",
354354
" \"\"\"\n",
355355
"\n",
@@ -566,10 +566,10 @@
566566
" Params:\n",
567567
" ------\n",
568568
" identifier: int\n",
569-
" A unique identifer for this caller\n",
569+
" A unique identifier for this caller\n",
570570
"\n",
571571
" env: simpy.Environment\n",
572-
" The current environent the simulation is running in\n",
572+
" The current environment the simulation is running in\n",
573573
" We use this to pause and restart the process after a delay.\n",
574574
"\n",
575575
" args: Experiment\n",

content/09_time_weighted_calcs.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"DEFAULT_RND_SET = 0\n",
9696
"# ##############################################################################\n",
9797
"\n",
98-
"# Boolean switch to simulation results as the model runs\n",
98+
"# Boolean switch to display simulation results as the model runs\n",
9999
"TRACE = False\n",
100100
"\n",
101101
"# run variables\n",
@@ -423,7 +423,7 @@
423423
" An Experiment:\n",
424424
" 1. Contains a list of parameters that can be left as defaults or varied\n",
425425
" 2. Provides a place for the experimentor to record results of a run\n",
426-
" 3. Controls the set & streams of psuedo random numbers used in a run.\n",
426+
" 3. Controls the set & streams of pseudo random numbers used in a run.\n",
427427
"\n",
428428
" \"\"\"\n",
429429
"\n",
@@ -648,10 +648,10 @@
648648
" Params:\n",
649649
" ------\n",
650650
" identifier: int\n",
651-
" A unique identifer for this caller\n",
651+
" A unique identifier for this caller\n",
652652
"\n",
653653
" env: simpy.Environment\n",
654-
" The current environent the simulation is running in\n",
654+
" The current environment the simulation is running in\n",
655655
" We use this to pause and restart the process after a delay.\n",
656656
"\n",
657657
" args: Experiment\n",

content/10_multiple_arrival_processes.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"N_STREAMS = 4\n",
6868
"DEFAULT_RND_SET = 0\n",
6969
"\n",
70-
"# Boolean switch to simulation results as the model runs\n",
70+
"# Boolean switch to display simulation results as the model runs\n",
7171
"TRACE = False\n",
7272
"\n",
7373
"# run variables (units = hours)\n",
@@ -79,7 +79,7 @@
7979
"id": "5f2a4ad9-6d5e-480d-850f-84d4882a738b",
8080
"metadata": {},
8181
"source": [
82-
"## 2. Helper classes and functions"
82+
"## 3. Helper classes and functions"
8383
]
8484
},
8585
{
@@ -153,7 +153,7 @@
153153
"id": "5a8c050c-4bb6-408f-a805-3a4aaab56916",
154154
"metadata": {},
155155
"source": [
156-
"## 3. Experiment class"
156+
"## 4. Experiment class"
157157
]
158158
},
159159
{
@@ -257,7 +257,7 @@
257257
"id": "de8990c2-a330-4c02-ac77-26c30d3e0a41",
258258
"metadata": {},
259259
"source": [
260-
"## 4. A function per arrival source\n",
260+
"## 5. A function per arrival source\n",
261261
"\n",
262262
"The first approach we will use is creating an arrival generator per source. There will be some code redundancy, but it will a clear design for others to understand."
263263
]
@@ -392,7 +392,7 @@
392392
"id": "6058571e-9fdb-4961-be27-8a3b8c2fe26e",
393393
"metadata": {},
394394
"source": [
395-
"## 5. Single run function"
395+
"## 6. Single run function"
396396
]
397397
},
398398
{

content/11_blocking.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"N_STREAMS = 3\n",
8383
"DEFAULT_RND_SET = 0\n",
8484
"\n",
85-
"# Boolean switch to simulation results as the model runs\n",
85+
"# Boolean switch to display simulation results as the model runs\n",
8686
"TRACE = False\n",
8787
"\n",
8888
"# run variables (units = days)\n",
@@ -94,7 +94,7 @@
9494
"id": "5f2a4ad9-6d5e-480d-850f-84d4882a738b",
9595
"metadata": {},
9696
"source": [
97-
"## 2. Helper classes and functions"
97+
"## 3. Helper classes and functions"
9898
]
9999
},
100100
{
@@ -122,7 +122,7 @@
122122
"id": "5a8c050c-4bb6-408f-a805-3a4aaab56916",
123123
"metadata": {},
124124
"source": [
125-
"## 3. Experiment class"
125+
"## 4. Experiment class"
126126
]
127127
},
128128
{
@@ -229,7 +229,7 @@
229229
"id": "94f0f9c5-22cb-493a-9f1f-4e2a8325beaa",
230230
"metadata": {},
231231
"source": [
232-
"## 4. Pathway process logic\n",
232+
"## 5. Pathway process logic\n",
233233
"\n",
234234
"The key things to recognise are \n",
235235
"\n",
@@ -317,7 +317,7 @@
317317
"id": "de8990c2-a330-4c02-ac77-26c30d3e0a41",
318318
"metadata": {},
319319
"source": [
320-
"## 4. Arrivals generator\n",
320+
"## 6. Arrivals generator\n",
321321
"\n",
322322
"This is a standard arrivals generator. We create stroke arrivals according to their distribution."
323323
]
@@ -362,7 +362,7 @@
362362
"id": "6058571e-9fdb-4961-be27-8a3b8c2fe26e",
363363
"metadata": {},
364364
"source": [
365-
"## 5. Single run function"
365+
"## 7. Single run function"
366366
]
367367
},
368368
{

content/12_arrival_classes.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"N_STREAMS = 4\n",
9393
"DEFAULT_RND_SET = 0\n",
9494
"\n",
95-
"# Boolean switch to simulation results as the model runs\n",
95+
"# Boolean switch to display simulation results as the model runs\n",
9696
"TRACE = False\n",
9797
"\n",
9898
"# run variables (units = minutes)\n",

0 commit comments

Comments
 (0)