metawards.Infections¶
-
class
metawards.Infections[source]¶ This class holds the arrays that record the infections as they are occuring during the outbreak
-
__init__() → None¶
Methods
__init__()build(network)Construct and return the Infections object that will track infections during a model run on the passed Network clear(nthreads)Clear all of the infections (resets all to zero) Attributes
playThe infections caused by random (play) movements. workThe infections caused by fixed (work) movements. -
static
build(network: metawards._network.Network)[source]¶ Construct and return the Infections object that will track infections during a model run on the passed Network
-
clear(nthreads: int = 1)[source]¶ Clear all of the infections (resets all to zero)
Parameters: nthreads (int) – Optionally parallelise this reset by specifying the number of threads to use
-
play= None¶ The infections caused by random (play) movements. This is a list of int arrays, size play[N_INF_CLASSES][nnodes+1]
-
work= None¶ The infections caused by fixed (work) movements. This is a list of int arrays, size work[N_INF_CLASSES][nlinks+1]
-