june.demography.person.Person¶
-
class
june.demography.person.
Person
(id: int = 0, sex: str = 'f', age: int = 27, ethnicity: str = None, socioecon_index: str = None, area: Area = None, work_super_area: SuperArea = None, sector: str = None, sub_sector: str = None, lockdown_status: str = None, comorbidity: str = None, mode_of_transport: ModeOfTransport = None, busy: bool = False, subgroups: june.demography.person.Activities = Activities(residence=None, primary_activity=None, medical_facility=None, commute=None, rail_travel=None, leisure=None, box=None), infection: june.infection.infection.Infection = None, susceptibility: float = 1.0, dead: bool = False) Create new instance: Person(id, sex, age, ethnicity, socioecon_index, area, work_super_area, sector, sub_sector, lockdown_status, comorbidity, mode_of_transport, busy, subgroups, infection, susceptibility, dead)
-
find_guardian
()
-
classmethod
from_attributes
(sex='f', age=27, ethnicity=None, socioecon_index=None, id=None, comorbidity=None)
-
_id
= count(0)
-
age
: int
-
area
: Area
-
property
box
-
busy
: bool
-
property
commute
-
comorbidity
: str
-
dead
: bool
-
ethnicity
: str
-
property
home_city
-
property
hospitalised
-
property
housemates
-
id
: int
-
property
infected
-
infection
: june.infection.infection.Infection
-
property
intensive_care
-
property
leisure
-
lockdown_status
: str
-
property
medical_facility
-
mode_of_transport
: ModeOfTransport
-
property
primary_activity
-
property
rail_travel
-
property
recovered
-
property
residence
-
sector
: str
-
sex
: str
-
socioecon_index
: str
-
sub_sector
: str
-
subgroups
: june.demography.person.Activities
-
property
super_area
-
susceptibility
: float
-
property
susceptible
-
property
symptoms
-
property
work_city
-
work_super_area
: SuperArea
-