plot_prop_report
Command line utility for plotting property reports.
call_plot_traces(args, trace_values)
Call the internal plot_traces function and, optionally, save the results to disk.
Source code in emod_api/channelreports/plot_prop_report.py
list_channels_and_ips(channel_keys)
List the channels and properties found in a property report from the CHANNEL:IP:value,...,IP:value keys of the channel dictionary.
Source code in emod_api/channelreports/plot_prop_report.py
main(args)
Plot specified property report with the given options.
Source code in emod_api/channelreports/plot_prop_report.py
process_cmd_line()
Put command line processing here rather than in if 'name' == '__main__'.
Source code in emod_api/channelreports/plot_prop_report.py
prop_report_json_to_csv(output_path, channel_name='Infected', groupby='Geographic')
Converts selected channel of PropertyReportXXX.json into a CSV file, rolled up into a single property.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
output_path
|
str
|
Subdirectory in which to find a file called PropertyReportXXX.json. XXX can be blank or a disease named like 'TB'. |
required |
channel_name
|
str
|
Name of the channel to process from the property report. Defaults to "Infected". |
'Infected'
|
groupby
|
str
|
Property to group by. Defaults to "Geographic". |
'Geographic'
|
Returns:
Raises:
| Type | Description |
|---|---|
ValueError
|
If no PropertyReportXXX.json file is found in the directory. |