vaccinations¶
vaccinations.py¶
module¶
Vaccination module, initialize and store all vaccination objects.
Attibutes
vaccinations (list): List of vacination objects
__init__(self, vacc_params, comm)
special
¶
Initializes vaccination module.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vacc_params |
list |
List of parsed vaccinations parameters. |
required |
comm |
comorbuss.community |
Community object |
required |
Source code in
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
|
init_vacc(self, vacc_param, i)
¶
Initialize vaccination policies.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vacc_param |
dict |
Parameters for the module. |
required |
i |
community |
Vaccination id. |
required |
Returns:
Type | Description |
---|---|
List |
List of the vaccination objects. |
Source code in
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 |
|
log_results(self)
¶
Aggregate vaccinations related results at the end of the simulation.
Source code in
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 |
|
run(self, at_start=False)
¶
Runs the vaccination campaigns set on self.vaccinations.
Source code in
291 292 293 294 295 296 |
|
update_disease_coeficients(self)
¶
Update coefficients for each affected disease attribute.
Source code in
298 299 300 301 302 303 304 305 |
|
triage¶
Parses vaccinations parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vaccinations |
list |
List of vaccinations parameters. |
required |
sim_parameters |
dict |
Parsed simulation parameters. |
required |
clk |
clock |
Clock object. |
required |
event_log |
function |
Event_log function. |
required |
Returns:
Type | Description |
---|---|
list |
List of parsed vaccinations parameters. |
Source code in
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
|
ADULTS
¶
Apply the default number of doses on adults citizens (age groups 5 to 21, 20+ years old).
CHILDRENS
¶
Apply the default number of doses on child citizens (age groups 0 to 4, 0-19 years old).
DIAG_NO
¶
Apply the default number of doses on citizens that where not diagnosed.
HOSPITALS_WORKERS
¶
Apply the default number of doses on hospitals workers.
MAKETS_WORKERS
¶
Apply the default number of doses on markets workers.
SENIORS
¶
Apply the default number of doses on senior citizens (age groups 12 to 21, 60+ years old).
VACC_NYET
¶
Marker for particles not vaccinated