mrc-ide / safir

squire and friends individual rewrite
https://mrc-ide.github.io/safir/
Other
1 stars 2 forks source link

error in externally forced FoI #35

Closed slwu89 closed 3 years ago

slwu89 commented 3 years ago

If the lambda_external parameter is supplied and is non-zero, it will still only be evaluated in the infection functions if there are > 0 infectives in the population, because of the check that only calculates if there are some infectives. We should also grab the importation rate lambda outside of that check and go ahead and calculate if there are > 0 infectives or a non-zero external FoI.