emodpy.analyzers.timeseries_analyzer module#
- class emodpy.analyzers.timeseries_analyzer.TimeseriesAnalyzer(filenames=['output/InsetChart.json'], channels=('Statistical Population', 'Infectious Population', 'Infected', 'Waning Population'), save_output=True)[source]#
Bases:
IAnalyzer
- data_group_names = ['group', 'sim_id', 'channel']#
- ordered_levels = ['channel', 'group', 'sim_id']#
- output_file = 'timeseries.csv'#
- initialize()[source]#
Call once after the analyzer has been added to the
AnalyzeManager
.Add everything depending on the working directory or unique ID here instead of in __init__.
- filter(simulation)[source]#
Decide whether the analyzer should process a simulation/work item.
- Parameters:
item – An
IItem
to be considered for processing with this analyzer.- Returns:
A Boolean indicating whether simulation/work item should be analyzed by this analyzer.
- map(data, simulation)[source]#
In parallel for each simulation/work item, consume raw data from filenames and emit selected data.
- Parameters:
data – A dictionary associating filename with content for simulation data.
item –
IItem
object that the passed data is associated with.
- Returns:
Selected data for the given simulation/work item.