common
DemographicsReport
Bases: ConfigReporter
BinnedReport.json and DemographicsSummary.json are both generated by the DemographicsReport.
The demographic summary output report (DemographicsSummary.json) is a JSON-formatted file with the demographic channel output results of the simulation, consisting of simulation-wide averages by time step. The format is identical to the inset chart output report, except the channels reflect demographic categories, such as gender ratio.
The binned output report (BinnedReport.json) is a JSON-formatted file where the channel data has been sorted into age bins. It is very similar to an inset chart, however, with the binned report all channels are broken down into sub-channels (bins) based on age. For example, instead of having a single prevalence channel, you might have prevalence in the '0-3 years old bin' and the '4-6 years old bin', and so forth.
For HIV, see Demographic summary report and Binned report, and for malaria, see Demographic summary report and Binned report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required |
Source code in emodpy/reporters/common.py
InsetChart
Bases: ConfigReporter
The InsetChart (InsetChart.json) report contains data for a variety of statistics for each time step of the simulation and can give you a good overview of what happened. Most statistics are collected by polling the population at the end of the time step, however, there can be statistics that count events that occur during the time step.
For HIV, see InsetChart report, and for malaria, see InsetChart report
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required |
has_ip
|
list[str]
|
A channel is added to InsetChart for each value of each IndividualProperty key
provided. The channel name will be HasIP_ |
None
|
has_interventions
|
list[str]
|
A channel is added to InsetChart for each intervention name provided.
The channel name will be Has_ |
None
|
include_pregnancies
|
bool
|
If true, channels are added about pregnancies and possible mothers. |
False
|
Source code in emodpy/reporters/common.py
PropertyReport
Bases: ConfigReporter
The property output report (PropertyReport.json) is a JSON-formatted file with the channel output results of the simulation, defined by the groups set up using IndividualProperties in the demographics file. See IndividualProperties for more information. The report contains the count of individuals with each possible Individual Property (IP) key-value combination. The < channel-title > tells you the statistic and property that are being counted. For example, it allows you to compare disease deaths for people in the high risk group versus the low risk group.
For HIV, see Property report and for malaria, see Property report
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required |
Source code in emodpy/reporters/common.py
ReportCoordinatorEventRecorder
Bases: ConfigReporter
The Coordinator-level events report (ReportCoordinatorEventRecorder.csv) records the event, time, and the coordinator sending out the event.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required |
event_list
|
list[str]
|
The list of coordinator-level events to include in the output report. These would be coordinator-level events you've used in campaigns. |
required |
Source code in emodpy/reporters/common.py
ReportDrugStatus
Bases: BuiltInReporter
The drug status report (ReportDrugStatus.csv) provides status information on the drugs that an individual has taken or is waiting to take.
For more information, see Drug status report
Parameters:
| Name | Type | Description | Default | ||
|---|---|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required | ||
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are:
|
None
|
Source code in emodpy/reporters/common.py
ReportEventCounter
Bases: BuiltInReporter
The event counter report (ReportEventCounter.json) is a JSON-formatted file that keeps track of how many of each individual-level event types occur during a time step. The report produced is similar to the InsetChart.json channel report, where there is one channel for each event defined in the 'event_list' parameter. This report only counts events; a similar report, ReportEventRecorder, will provide information about the person at the time of the event.
For HIV, see Event counter report, and for malaria, see Event counter report
Parameters:
| Name | Type | Description | Default | ||
|---|---|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required | ||
event_list
|
list[str]
|
List of individual-level events which to count. There will be one channel for each event in the list. For HIV, see Campaign event list and for malaria: Campaign event list for available built-in events, as well as custom events you've defined in campaigns. |
required | ||
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are:
|
None
|
Source code in emodpy/reporters/common.py
ReportEventRecorder
Bases: ConfigReporter
The health events and interventions report (ReportEventRecorder.csv) provides information on each individual’s demographics and health status at the time of an event. Additionally, it is possible to see the value of specific IndividualProperties, as assigned in the demographics file.
For more information, see HIV: Event recorder report or Malaria: Event recorder report
Parameters:
| Name | Type | Description | Default | ||
|---|---|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required | ||
event_list
|
list[str]
|
The list of individual-level events to include in the output report. For HIV, see Campaign event list, and for malaria, Campaign event list events already used by EMOD or use your own custom events from campaigns. |
required | ||
individual_properties
|
list[str]
|
A list of individual property keys, as defined in IndividualProperties in the demographics, to be added as additional columns to the output report. One column will be added to the report for each key in the list. For malaria, see Model properties and for HIV, see Model properties. |
None
|
||
property_change_ip_to_record
|
str
|
IndividualProperty key string for which recorder will add the PropertyChange event to the list of events that the report is listening to. However, it will only record the events where the property changed the value of this given key. For malaria, see Model properties and for HIV, see Model properties. |
None
|
||
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are:
|
None
|
Source code in emodpy/reporters/common.py
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 | |
ReportHumanMigrationTracking
Bases: BuiltInReporter
The human migration tracking report (ReportHumanMigrationTracking.csv) is a CSV-formatted report that provides details about human travel during simulations. The finished report will provide one line for each surviving individual that migrates during the simulation.
For HIV, see Human migration report and for malaria, see Human migration report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required |
Source code in emodpy/reporters/common.py
ReportInfectionDuration
Bases: BuiltInReporter
The infection duration report (ReportInfectionDuration.csv)provides one line of information about an infection that has just cleared. It tells you who had the infection and how long they had it.
Parameters:
| Name | Type | Description | Default | ||
|---|---|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required | ||
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are:
|
None
|
Source code in emodpy/reporters/common.py
ReportNodeDemographics
Bases: BuiltInReporter
The node demographics report (ReportNodeDemographics.csv) is a CSV-formatted report that provides population information stratified by node. For each time step, the report will collect data on each node and age bin.
For HIV, see Node demographics report and for malaria, see Node demographics report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required |
ip_key_to_collect
|
str
|
Name of the IndividualProperties Key to stratify the report. For malaria, see Model properties and for HIV, see Model properties. Default is None. |
None
|
age_bins
|
list[float]
|
Age bins (in years) to stratify by, in ascending order. Default is None. |
None
|
stratify_by_gender
|
bool
|
If True, stratify by gender. Default: True. |
True
|
Source code in emodpy/reporters/common.py
ReportNodeEventRecorder
Bases: ConfigReporter
The Node-level events report (ReportNodeEventRecorder.csv) provides information on node's population and health status at the time of a node-level event. Additionally, it is possible to break up the population data by specific Node and Individual Properties.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required |
event_list
|
list[str]
|
The list of node-level events to include in the output report. These would be node-level events you have used in your campaigns. |
required |
node_properties_to_record
|
list[str]
|
A list of node property keys, as defined in NodeProperties in the demographics, to be added as additional columns to the ReportNodeEventRecorder.csv output report. For malaria, see Model properties and for HIV, see Model properties. |
None
|
stats_by_ips
|
list[str]
|
A list of individual property keys, as defined in IndividualProperties in the demographics. For each key in this list, there are two columns added for each value of the key, key::NumIndividuals and key::NumInfected. For malaria, see Model properties and for HIV, see Model properties. |
None
|
Source code in emodpy/reporters/common.py
ReportPluginAgeAtInfection
Bases: BuiltInReporter
Creates ReportPluginAgeAtInfection report to be added to the simulation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required |
Source code in emodpy/reporters/common.py
ReportPluginAgeAtInfectionHistogram
Bases: BuiltInReporter
Creates ReportPluginAgeAtInfectionHistogram report to be added to the simulation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required |
age_bin_upper_edges
|
list[float]
|
A list of ages (in years) where an individual will count in the upper value bin when their age is between two bins. |
None
|
reporting_interval
|
float
|
Repeating time period (in years) for which the data is collected and reported |
1
|
Source code in emodpy/reporters/common.py
ReportSimulationStats
Bases: BuiltInReporter
Creates the ReportSimulationStats to summarize key simulation statistics.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required |
Source code in emodpy/reporters/common.py
ReportSurveillanceEventRecorder
Bases: ConfigReporter
The Coordinator-level events report (ReportSurveillanceEventRecorder.csv) for events sent out by a SurveillanceEventCoordinator. The report provides information on node's population and health status at the time of an event. Additionally, it is possible to break up the population data by specific Node and Individual Properties. Only the nodes that the SurveillanceEventCoordinator listening to will be included in the report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required |
event_list
|
list[str]
|
The list of coordinator-level events to include in the output report. These would be coordinator-level events you've used in campaigns. |
required |
stats_by_ips
|
list[str]
|
A list of individual property keys, as defined in IndividualProperties in the demographics. For each key in this list, there are two columns added for each value of the key, key::NumIndividuals and key::NumInfected. For malaria, see Model properties and for HIV, see Model properties. |
None
|
Source code in emodpy/reporters/common.py
SpatialReport
Bases: ConfigReporter
Creates a separate spatially-distributed data binary (SpatialReport_{Channel_Name}.bin) for every channel listed.
For HIV, see Spatial report, and for malaria, see Spatial report
Parameters:
| Name | Type | Description | Default | ||
|---|---|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required | ||
spatial_output_channels
|
list[str]
|
List of data channels for which to create spatial reports. All the channels are defined in the SpatialReportChannels enum. Please use the enum to define the channels. Example::
|
required |
Source code in emodpy/reporters/common.py
SqlReport
Bases: BuiltInReporter
The SqlReport outputs epidemiological and transmission data. Because of the quantity and complexity of the data, the report output is a multi-table SQLite relational database (see https://sqlitebrowser.org/). Use the configuration parameters to manage the size of the database.
Parameters:
| Name | Type | Description | Default | ||
|---|---|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by the emodpy. |
required | ||
include_health_table
|
bool
|
If True, include health-related data in the report. Default: True |
True
|
||
include_individual_properties
|
bool
|
If True, include individual properties in the report. For malaria, see Model properties and for HIV, see Model properties. Default: False |
False
|
||
include_infection_data_table
|
bool
|
If True, include infection data in the report. Default: True |
True
|
||
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are:
|
None
|