This PR simplifies the code required to run a model by including default parameters if no parameters/parameters files are specified. The Python Model class also has a run() method now which runs the simulation to the end time and results are collected. The 2 changes means a whole simulation can be created with a few lines of code once the Python package is installed (which now includes default data).
This PR simplifies the code required to run a model by including default parameters if no parameters/parameters files are specified. The Python Model class also has a run() method now which runs the simulation to the end time and results are collected. The 2 changes means a whole simulation can be created with a few lines of code once the Python package is installed (which now includes default data).
import COVID19.model as abm
model = abm.Model( params = { "n_total" : 10000, "end_time": 20 } )
print( model.run() )
The change is fully backwards compatible with no changes to current behaviour.