InstituteforDiseaseModeling / covasim

COVID-19 Agent-based Simulator (Covasim): a model for exploring coronavirus dynamics and interventions
https://covasim.org
MIT License
250 stars 223 forks source link

Most desired way to load custom population #294

Closed rlatkows closed 3 years ago

rlatkows commented 3 years ago

I would like to load my own custom population with several layers of connections. What would be the suggested way to do it?

cliffckerr commented 3 years ago

Hi @rlatkows , there are a few options here. You can take a look at population.py and see how the population is constructed. For a more sophisticated solution, you can look at SynthPops, which is a very flexible package for generating synthetic populations. If you'd like to discuss this in more detail, please feel free to reach out to us at covasim@idmod.org.

rlatkows commented 3 years ago

Done by extending inherited classes with custom make_pop methods.