From ae7bd61cda354bff29deea7bbe4887773e9e25e1 Mon Sep 17 00:00:00 2001 From: stecrotti Date: Wed, 4 Sep 2024 16:00:43 +0200 Subject: [PATCH] fix small type instability --- src/sampling.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sampling.jl b/src/sampling.jl index 8b054643..acf10393 100644 --- a/src/sampling.jl +++ b/src/sampling.jl @@ -255,7 +255,7 @@ function simulate_queue_sis!(x, g, P0, λ, μ, α, T; end -function continuous_sis_sampler(sis, T, λ, ρ; α=0, nsamples = 10^5, sites=1:nv(sis.g), Δt=T/200, +function continuous_sis_sampler(sis, T, λ, ρ; α=0.0, nsamples = 10^5, sites=1:nv(sis.g), Δt=T/200, discard_dead_epidemics=false, rng = GLOBAL_RNG) K = floor(Int, T/Δt)+1 N = nv(sis.g)