-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuk.py
64 lines (52 loc) · 1.29 KB
/
uk.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import logging
from configparser import ConfigParser
from toolbox.utils import (run)
from toolbox.config import (Config)
logging.basicConfig(level=logging.INFO)
config = ConfigParser()
config.read('configs/uk.ini')
params = Config(config)
output_file = 'figs/uk-controlled-scaled-new_cases'
# one_wave = run(
# params=params,
# export=True,
# file_name=f'{output_file}-1wave.pdf',
# second_wave=False,
# third_wave=False,
# inset_plot=True,
# )
# two_waves = run(
# params=params,
# export=True,
# file_name=f'{output_file}-2waves.pdf',
# second_wave=True,
# third_wave=False,
# inset_plot=True,
# )
#
# three_waves_no_vaccination = run(
# params=params,
# export=True,
# file_name=f'{output_file}-3waves.pdf',
# second_wave=True,
# third_wave=True,
# inset_plot=True
# )
#
f
for v in params.vaccination.rates:
file_name = f'{output_file}-3waves-vaccination_{str(v).replace(".", "")}.pdf'
params.vaccination.average_rate = v
params.vaccination.vaccination = True
result = run(
params=params,
figure=True,
export=True,
file_name=file_name,
second_wave=True,
third_wave=True,
inset_plot=True
)
model = result['model']
dt = result['dt']
z = result['cases']