Skip to content

Commit bfcfb84

Browse files
committed
chore(all): minor lint + re-run notebooks
1 parent 7a369de commit bfcfb84

11 files changed

+547
-371
lines changed

notebooks/analysis.ipynb

Lines changed: 245 additions & 140 deletions
Large diffs are not rendered by default.

notebooks/choosing_cores.ipynb

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

notebooks/choosing_replications.ipynb

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

notebooks/choosing_warmup.ipynb

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

notebooks/generate_exp_results.ipynb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,13 @@
762762
"There are 4 scenarios. Running:\n",
763763
"{'patient_inter': 3, 'number_of_nurses': 6}\n",
764764
"{'patient_inter': 3, 'number_of_nurses': 7}\n",
765-
"{'patient_inter': 4, 'number_of_nurses': 6}\n",
765+
"{'patient_inter': 4, 'number_of_nurses': 6}\n"
766+
]
767+
},
768+
{
769+
"name": "stdout",
770+
"output_type": "stream",
771+
"text": [
766772
"{'patient_inter': 4, 'number_of_nurses': 7}\n"
767773
]
768774
},

notebooks/input_modelling.ipynb

Lines changed: 269 additions & 204 deletions
Large diffs are not rendered by default.

notebooks/logs.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@
8282
" \u001b[32m'env'\u001b[0m: \u001b[32m'\u001b[0m\u001b[32m<\u001b[0m\u001b[32msimpy.core.Environment\u001b[0m\u001b[32m>'\u001b[0m\u001b[39m,\u001b[0m \n",
8383
"\u001b[39m \u001b[0m\u001b[32m'nurse'\u001b[0m\u001b[39m: \u001b[0m\u001b[32m'<simulation.model.MonitoredResource>'\u001b[0m\u001b[39m,\u001b[0m \n",
8484
"\u001b[39m \u001b[0m\u001b[32m'nurse_consult_count'\u001b[0m\u001b[39m: \u001b[0m\u001b[1;36m0\u001b[0m\u001b[39m,\u001b[0m \n",
85-
"\u001b[39m \u001b[0m\u001b[32m'nurse_consult_time_dist'\u001b[0m\u001b[39m: \u001b[0m\u001b[32m'<simulation.model.Exponential>'\u001b[0m\u001b[39m,\u001b[0m \n",
85+
"\u001b[39m \u001b[0m\u001b[32m'nurse_consult_time_dist'\u001b[0m\u001b[39m: \u001b[0m\u001b[32m'<sim_tools.distributions.Exponential>'\u001b[0m\u001b[39m,\u001b[0m \n",
8686
"\u001b[39m \u001b[0m\u001b[32m'nurse_time_used'\u001b[0m\u001b[39m: \u001b[0m\u001b[1;36m0\u001b[0m\u001b[39m,\u001b[0m \n",
8787
"\u001b[39m \u001b[0m\u001b[32m'nurse_time_used_correction'\u001b[0m\u001b[39m: \u001b[0m\u001b[1;36m0\u001b[0m\u001b[39m,\u001b[0m \n",
8888
"\u001b[39m \u001b[0m\u001b[32m'param'\u001b[0m\u001b[39m: \u001b[0m\u001b[32m'<simulation.model.Param>'\u001b[0m\u001b[39m,\u001b[0m \n",
89-
"\u001b[39m \u001b[0m\u001b[32m'patient_inter_arrival_dist'\u001b[0m\u001b[39m: \u001b[0m\u001b[32m'<simulation.model.Exponential\u001b[0m\u001b[32m>\u001b[0m\u001b[32m'\u001b[0m, \n",
89+
"\u001b[39m \u001b[0m\u001b[32m'patient_inter_arrival_dist'\u001b[0m\u001b[39m: \u001b[0m\u001b[32m'<sim_tools.distributions.Exponential\u001b[0m\u001b[32m>\u001b[0m\u001b[32m'\u001b[0m, \n",
9090
" \u001b[32m'patients'\u001b[0m: \u001b[1m[\u001b[0m\u001b[1m]\u001b[0m, \n",
9191
" \u001b[32m'results_list'\u001b[0m: \u001b[1m[\u001b[0m\u001b[1m]\u001b[0m, \n",
9292
" \u001b[32m'run_number'\u001b[0m: \u001b[1;36m0\u001b[0m, \n",

notebooks/time_weighted_averages.ipynb

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

outputs/choose_param_cores.png

-326 Bytes
Loading

outputs/logs/log_example.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
'env': '<simpy.core.Environment>',
55
'nurse': '<simulation.model.MonitoredResource>',
66
'nurse_consult_count': 0,
7-
'nurse_consult_time_dist': '<simulation.model.Exponential>',
7+
'nurse_consult_time_dist': '<sim_tools.distributions.Exponential>',
88
'nurse_time_used': 0,
99
'nurse_time_used_correction': 0,
1010
'param': '<simulation.model.Param>',
11-
'patient_inter_arrival_dist': '<simulation.model.Exponential>',
11+
'patient_inter_arrival_dist': '<sim_tools.distributions.Exponential>',
1212
'patients': [],
1313
'results_list': [],
1414
'run_number': 0,

simulation/replications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ def plotly_confidence_interval_method(
766766
x=conf_ints['replications'],
767767
y=conf_ints['upper_ci'],
768768
mode='lines',
769-
line=dict(width=0),
769+
line={'width': 0},
770770
showlegend=False,
771771
name='Upper CI',
772772
text=[f'Deviation: {d}%' for d in deviation_pct]
@@ -777,7 +777,7 @@ def plotly_confidence_interval_method(
777777
x=conf_ints['replications'],
778778
y=conf_ints['lower_ci'],
779779
mode='lines',
780-
line=dict(width=0),
780+
line={'width': 0},
781781
fill='tonexty', # Fill to previous y trace
782782
fillcolor='rgba(0, 176, 185, 0.2)', # Semi-transparent fill
783783
name='Confidence interval'

0 commit comments

Comments
 (0)