Skip to content
Snippets Groups Projects

CovidAlertVaccinationModel

This repo contains three packages:

  • CovidAlertVaccinationModel

  • IntervalsModel

  • ZeroWeightedDistributions

The former implements the ABM, and the second computes the time-distributions. The latter model depends on the former model because the mixing distributions are defined there, although really I guess it should be the inverse. The last package, ZeroWeightedDistributions, implements a helpful type ZWDist{D} representing a random variable of distribution D with added weight at zero.

Note that you need the Julia-1.6 beta to compile this project successfully. This is because the mixing distributions hit a compiler bug. I will try to find a workaround for when we run this on a cluster.

Installation

First, clone this repository and open the Julia-1.6 beta in the active directory

git clone https://git.uwaterloo.ca/pjentsch/covidalertabm.git
cd covidalertabm
julia -t auto

the -t auto option starts Julia with as many threads as you have physical CPU cores. You can pass this option a number if you prefer to use fewer threads.

This should bring you to a julia REPL. Typing ] at this repl will change your prompt to pkg>.

Then add these packages to your main environment:

dev ./CovidAlertVaccinationModel
dev ./IntervalsModel
dev ./ZeroWeightedDistributions

We need to dev each of the above packages because they all share one git repo, and Julia's package manager doesn't seem to like that very much. I suppose we could split them into separate repos in the future.

This package only tested on x86-64 Linux. It should work everywhere that Julia does though.