epirecipes / sir-julia

Various implementations of the classical SIR model in Julia
MIT License
196 stars 39 forks source link

fix jump_process_delay example #48

Closed slwu89 closed 2 years ago

slwu89 commented 2 years ago

@sdwfrost thanks for the nice catch re; initial infectives never recovering! This PR fixes it. Also I do not know why but the results of benchmarking using BenchmarkTools.@benchmark are not rendering on my machine here, I'm on Julia v1.7.1 and tried on both a Mac and Ubuntu; all required packages are up to date as well.

slwu89 commented 2 years ago

@sdwfrost I think this PR might still be worth taking a look at! It uses the regular solve rather than making the integrator, so it will look a bit more like the other examples.