From d5373fe13b780feffb601ed7ae5c02eb9a4fb785 Mon Sep 17 00:00:00 2001 From: Samuel Brand Date: Mon, 11 Nov 2024 21:52:54 +0000 Subject: [PATCH] remove broken benchmark --- benchmark/bench/EpiInfModels/EpiInfModels.jl | 3 +-- .../bench/EpiInfModels/InfectionODEProcess.jl | 24 ------------------- 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 benchmark/bench/EpiInfModels/InfectionODEProcess.jl diff --git a/benchmark/bench/EpiInfModels/EpiInfModels.jl b/benchmark/bench/EpiInfModels/EpiInfModels.jl index b07775eda..0d9ca5f1e 100644 --- a/benchmark/bench/EpiInfModels/EpiInfModels.jl +++ b/benchmark/bench/EpiInfModels/EpiInfModels.jl @@ -1,12 +1,11 @@ module BenchEpiInfModels -using BenchmarkTools, TuringBenchmarking, EpiAware, Distributions, OrdinaryDiffEq +using BenchmarkTools, TuringBenchmarking, EpiAware, Distributions suite = BenchmarkGroup() include("../../make_epiaware_suite.jl") include("DirectInfections.jl") include("ExpGrowthRate.jl") -include("ODEProcess.jl") end BenchEpiInfModels.suite diff --git a/benchmark/bench/EpiInfModels/InfectionODEProcess.jl b/benchmark/bench/EpiInfModels/InfectionODEProcess.jl deleted file mode 100644 index bc0c4b4b1..000000000 --- a/benchmark/bench/EpiInfModels/InfectionODEProcess.jl +++ /dev/null @@ -1,24 +0,0 @@ -let - r = log(2) / 7 # Growth rate corresponding to 7 day doubling time - u0 = [1.0] - p = [r] - params = ODEParams(u0 = u0, p = p) - - # Define the ODE problem using SciML - # We use a simple exponential growth model - - function expgrowth(du, u, p, t) - du[1] = p[1] * u[1] - end - prob = ODEProblem(expgrowth, u0, (0.0, 10.0), p) - - # Define the ODEProcess - - expgrowth_model = ODEProcess(prob::ODEProblem; ts = 0:1:10, - solver = Tsit5(), - sol2infs = sol -> sol[1, :]) - - # Generate the latent infections - I_t = generate_latent_infs(expgrowth_model, params)() - suite["ODEProcess"] = make_epiaware_suite(mdl) -end