Snapshot¶
- class archABM.snapshot.Snapshot(header)[source]¶
Stores the state of an agent at a given time
- classmethod get_header(sep=',') → str[source]¶
Takes all items in
header
and joins them into one string.A string must be specified as the separator, by default “,”
- get_data(sep=',') → str[source]¶
Takes all items in
store
and joins them into one string.A string must be specified as the separator, by default “,”
Snapshot Person¶
- class archABM.snapshot_person.SnapshotPerson[source]¶
Stores the state of a person at a given time
It saves the following attributes:
Attribute
Description
Type
run
Simulation run
time
Simulation time (minutes)
person
Person ID
status
Person status (0: susceptible, 1: infective)
place
Place ID
event
Event ID
CO2_level
Average CO2 level (ppm)
quanta_inhaled
Quanta inhaled (quanta)
Snapshot Place¶
- class archABM.snapshot_place.SnapshotPlace[source]¶
Stores the state of a place at a given time
It saves the following attributes:
Attribute
Description
Type
run
Simulation run
time
Simulation time (minutes)
place
Place ID
activity
Activity
num_people
Number of people
infective_people
Number of infective people
CO2_level
CO2 level (ppm)
quanta_level
quanta level (ppm)
temperature
Room temperature
relative_humidity
Room relative humidity