metawards.extractors.output_core_omp

metawards.extractors.output_core_omp(network: Network, population: Population, workspace: Workspace, infections: Infections, nthreads: int, **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 parallel 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) – Space to hold the nfections
  • nthreads (int) – The number of threads to use to help extract the data
  • kwargs – Extra argumentst that are ignored by this function