epiverse-trace / epidemics

A library of published compartmental epidemic models, and classes to represent demographic structure, non-pharmaceutical interventions, and vaccination regimes, to compose epidemic scenarios.
https://epiverse-trace.github.io/epidemics/
Other
8 stars 2 forks source link

Remove <infection> class #133

Closed pratikunterwegs closed 9 months ago

pratikunterwegs commented 10 months ago

This issue is to request the extension of #114 and the removal of the <infection> class, with infection parameters passed directly to model functions as named arguments.

Current functionality:

infection = infection(r0 = x, infectious_period = y, ...)
epidemic_*(population, infection, ...)

Expected functionality following this change:

epidemic_*(population, ..., r0 = x, infectious_period = y, <MORE INFECTION PARAMETERS>)