june.policy.individual_policies.IndividualPolicies¶
-
class
june.policy.individual_policies.
IndividualPolicies
(policies: List[june.policy.policy.Policy]) A collection of like policies active on the same date
-
__init__
(policies: List[june.policy.policy.Policy]) A collection of like policies active on the same date
-
apply
(active_policies, person: june.demography.person.Person, days_from_start: float, activities: List[str], furlough_ratio=None, key_ratio=None, random_ratio=None) Applies all active individual policies to the person. Stay home policies are applied first, since if the person stays home we don’t need to check for the others. IF a person is below 15 years old, then we look for a guardian to stay with that person at home.
-
classmethod
from_policies
(policies: june.policy.policy.Policies)
-
get_active
(date: datetime.date)
-
min_age_home_alone
= 15
-
policy_type
= 'individual'
-