vaccination.py¶
ADULTS
¶
Apply the deafult number of doses on adults citzens (age groups 5 to 21, 20+ years old).
CHILDRENS
¶
Apply the deafult number of doses on child citzens (age groups 0 to 4, 0-19 years old).
DIAG_NO
¶
Apply the deafult number of doses on citzens that where not diagnosed.
HOSPITALS_WORKERS
¶
Apply the deafult number of doses on hospitals workers.
MAKETS_WORKERS
¶
Apply the deafult number of doses on markets workers.
SENIORS
¶
Apply the deafult number of doses on senior citzens (age groups 12 to 21, 60+ years old).
vaccination
¶
This class stores the attributes for a quarantine policy and the methods for its progression.
Attributes:
Name | Type | Description |
---|---|---|
name |
str |
Name of the vaccination. |
id |
int |
Id of the vaccination (same as vacc_state). |
filter |
str |
Parsed filter to select particles to vaccinate. |
start_day |
int |
Day to start vaccination. |
time_to_immunity |
float |
Time from the vaccine application to immunity. |
doses_per_day |
int |
Number of doses to be applied per day. |
__call__(self)
special
¶
Runs methods related to this vaccination.
__init__(self, vacc_param, comm, randgen)
special
¶
Initialize a quarantine policy.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vacc_param |
dict |
Parameters related to the vaccination. |
required |
comm |
community |
The community object. |
required |
randgen |
Generator |
Random number generator used in vaccinations. |
required |
select_to_vaccinate(self)
¶
Select particles to vaccinate on one day using the filter.
Returns:
Type | Description |
---|---|
np.array, np.array |
mask_to_vac, mask_to_immunize |
vaccinate_0_1(self)
¶
Vaccinate particles for one day.
vaccinate_imperfect(self)
¶
Vaccinate particles for one day.
init_vaccinations(parameters, comm)
¶
Initialize vaccination policies.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
parameters |
dict |
Parameters for the simulation. |
required |
comm |
community |
The community object. |
required |
Returns:
Type | Description |
---|---|
List |
List of the vaccination objects. |