pandemia.reporters.csv¶
Reporters that output to CSV files
Module Contents¶
Classes¶
Reporter that writes to a CSV file as it runs. This reporter records the number of people in |
- class pandemia.reporters.csv.StrainCounts(telemetry_bus, config)¶
Bases:
pandemia.reporters.ReporterReporter that writes to a CSV file as it runs. This reporter records the number of people in each region infected with each strain, each day.
- initialize(number_of_regions, number_of_strains, region_names, population_sizes)¶
Called when the simulation starts. Writes headers and creates the file handle.
- update_counts(clock, strain_counts)¶
Update the CSV, writing a single row for every clock tick
- stop_sim()¶
Called when the simulation ends. Closes the file handle.