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

R6 wrapper classes #181

Closed olegat closed 3 years ago

olegat commented 3 years ago

This pull request provides an R6 implementation of the Python classes in src/COVID19/*.py

Some basic unit testing was done for these classes.

I've fixed all the notes / warnings / errors from R CMD check except for one error.

There is still some minor polishing up to do, I've labelled these with TODO(olegat) comments.

p-robot commented 3 years ago

Thanks, Oli. This looks great. Does this require a specific version of SWIG?

olegat commented 3 years ago

Yes this requires swig 3.0.12

I've checked with swig 4.0.2 but this version still triggers an error. I've filed a bug with swig for this. https://github.com/swig/swig/issues/1901