metawards.utils.prepare_worker

metawards.utils.prepare_worker(params: metawards._parameters.Parameters, demographics: metawards._demographics.Demographics, options: Dict[str, any]) Union[metawards._network.Network, metawards._networks.Networks][source]

Prepare a worker to receive work to run a model using the passed parameters. This will build the network specified by the parameters and will store it in global memory ready to be used for a model run. Note that these are silent, printing nothing to stdout or stderr

Parameters
  • params (Parameters) – Parameters used to build the network

  • demographics (Demographics) – If not None, then demographics used to specialise the Network into Networks