metawards.extractors.output_core¶

metawards.extractors.output_core(network: _Union[Network, Networks], population: Population, workspace: Workspace, infections: Infections, nthreads: int, profiler: Profiler, **kwargs)

This is the core output function that must be called every iteration as it is responsible for accumulating the core data each day, which is used to report a summary to the main output file. This is the serial version of this function.

Parameters
• network (Network) – The network over which the outbreak is being modelled

• population (Population) – The population experiencing the outbreak

• workspace (Workspace) – A workspace that can be used to extract data

• infections (Infections) – All of the infections that have been recorded

• nthreads (int) – The number of threads to use to help extract the data

• kwargs – Extra argumentst that are ignored by this function