BDI-pathogens / OpenABM-Covid19

OpenABM-Covid19: an agent-based model for modelling the spread of SARS-CoV-2 (coronavirus) and control interventions for the Covid-19 epidemic
GNU General Public License v3.0
114 stars 76 forks source link

Support multiple occupation networks. #107

Closed neozwu closed 4 years ago

neozwu commented 4 years ago

This PR aims to add an additional mechanism to support customized occupation networks. With this mechanism, one can load occupation network tables along with a table of the properties of each network, and it will use the customized occupation networks instead of the default ones. Follow-up PR will include an example.

neozwu commented 4 years ago

Addressed the comments and added a test. PTAL.

neozwu commented 4 years ago

Thank you Rob. Optimized the code and added a test case with n_total = 100 k. Also squashed and rebased the PR.