Person module¶
Python library to model the spread of infectious diseases within a microenvironment
-
class
Person.
Person
(simulation_params, starting_node_id, infection_status_label=None, quanta_emission_rate=None, inhalation_rate=None, person_type=None)¶ Bases:
HealthDES.PersonBase.Person_base
Class to implement a person as a simpy discreate event simulation
The person will have various characteristics which influences the simulation
The person will have a flow around the simulation implemented as a list of activities which are callled as each one completes.
-
expose_person_to_quanta
(quanta_concentration)¶ Calculate the amount of quanta the person is exposed to
- Parameters
quanta_concentration (number) – The concentration of infectious material in the environment in quanta
-
get_quanta_emission_rate
()¶ Get the parsons quanta emmission rate
- Returns
Number – Quanta emission rate
-
infection_risk
()¶ Determine risk that a patient is infected
-
infection_risk_instant
(quanta_concentration)¶ Return the probability the person will become infections
- Parameters
quanta_concentration (number) – Concentration of infectious material in the environment
- Returns
Probability that the person will become infected.
- Return type
number
-
log_infection
()¶ Log visitor activity within the process visitor process
-
log_infection_risk
()¶ Log visitors infection risk
-