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
111 stars 76 forks source link

Why don't use Python to implement the modeling directly? #209

Closed jiaanliux closed 3 years ago

jiaanliux commented 3 years ago

Why don't we use Python to implement the modeling directly instead of using C and making Python the interface?

roberthinch commented 3 years ago

The main reason is that native Python code is too slow for running the main simulation. The model was originally developed in C but the Python and R interface were subsequently added to make it easier to use whilst preserving the speed of C.