ukhsa-collaboration / pygom

ODE modelling in Python
GNU General Public License v2.0
27 stars 20 forks source link

Cannot function pygom.R0() thoughs erroe if model is defined by ODE type transitions. #57

Open m-d-grunnill opened 2 years ago

m-d-grunnill commented 2 years ago

When running the function:

pygom.R0(model, disease_state)

if the model used is defined using ode type transition objects then the error below occurs:

OutputError: ode was defined explicitly, no transition available
twomagpi commented 2 years ago

I think this might be because the R0 function is expecting explicit transitions rather than the system being defined by its ODEs.

I'd have to look and see if the R0 function could be re-written to work with both but as a work-round you might beable to use the unroll runction that attempts to turn an ODE based stystem into one defined by transitions.