from emodpy_malaria.reporters.builtin import *
add_malaria_summary_report(task, manifest, =1,
start_day=sim_years*365,
end_day=30,
reporting_interval=[0.25, 5, 115],
age_bins='StudyCohort:Placebo',
must_have_ip_key_value='_placebo',
filename_suffix=True) pretty_format
Using Individual Properties in Reports
Individual properties can also be used in reporting to limit the report to only those individuals in the specified group, to track the number of individuals with an IP or combination of IPs, or to report the IPs of individuals.
Malaria Summary Report
For the MalariaSummaryReport
, aggregation can be restricted by IP using the ipfilter
argument. For example, the following function will report, on aggregate, every 30 days on new infections and other infection updates in the Placebo group across the three age bins.
Property Report
The PropertyReport
outputs select channels (population, infected, new infections, and disease deaths) for all combinations of IPs and IP values. This output can get very large if there are many IPs and/or IP values in play.
To request the PropertyReport
:
# add to config parameter setup
= 1 config.parameters.Enable_Property_Output
Node Demographics Report
The NodeDemographicsReport
reports on node-level counts of individuals by age bin, infection status, and IPs if requested through IP_key_to_collect
:
from emodpy_malaria.reporters.builtin import *
add_report_node_demographics(task, manifest, ='StudyCohort') IP_key_to_collect
Report Event Recorder
To add an IP column to ReportEventRecorder
that reports the IP value for each individual experiencing the requested events, use ips_to_record
:
from emodpy_malaria.reporters.builtin import *
=["NewClinicalCase","Received_Treatment"],
add_event_recorder(task, event_list=1, end_day=365, node_ids=[1], min_age_years=0,
start_day=100,
max_age_years=['StudyCohort']) ips_to_record