Open twallema opened 1 year ago
This issue is partly resolved by PR #19. The order of the states, parameters, stratified parameters supplied to the integrate function does not matter as they are now keyworded. However, the user should still return the differentials in the same order as the state_names
variable. Perhaps this can be resolved by using a dictionary, however, this may complicate matters when applying numba.njit
to the integrate function. To be reconsidered at some later point.
Suggestion
Consider an SIR model stratified into two
age groups
(0-20 yo, 20-120 yo) with two parameters:beta
, the per-contact chance of infection, andgamma
, the recovery rate of the infected individuals. In the examplebeta
is stratified andgamma
is not.Providing the parameter
beta
beforegamma
yields the following error:Ideally, the order in which the parameters are given should not matter when initializing the model.