From 6ab847a1b7298ed192c60ba11e95eac37e8b4909 Mon Sep 17 00:00:00 2001 From: Samuel Brand Date: Mon, 7 Oct 2024 15:27:25 +0100 Subject: [PATCH] Change exp -> oneexpy --- pipeline/src/EpiAwarePipeline.jl | 2 ++ pipeline/src/infer/InferenceConfig.jl | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pipeline/src/EpiAwarePipeline.jl b/pipeline/src/EpiAwarePipeline.jl index 1ac7f58f2..501987799 100644 --- a/pipeline/src/EpiAwarePipeline.jl +++ b/pipeline/src/EpiAwarePipeline.jl @@ -15,6 +15,8 @@ using CSV, Dagger, DataFramesMeta, Dates, Distributions, DocStringExtensions, Dr LogExpFunctions, RCall, LinearAlgebra, Random, AlgebraOfGraphics, CairoMakie, ReverseDiff +using EpiAware.EpiInfModels: oneexpy + # Exported pipeline types export AbstractEpiAwarePipeline, EpiAwarePipeline, AbstractRtwithoutRenewalPipeline, RtwithoutRenewalPriorPipeline, EpiAwareExamplePipeline, SmoothOutbreakPipeline, diff --git a/pipeline/src/infer/InferenceConfig.jl b/pipeline/src/infer/InferenceConfig.jl index 070e26a52..d93e0d9d9 100644 --- a/pipeline/src/infer/InferenceConfig.jl +++ b/pipeline/src/infer/InferenceConfig.jl @@ -35,9 +35,10 @@ struct InferenceConfig{T, F, IGP, L, O, E, D <: Distribution, X <: Integer} latent_model_name::String priorpredictive::Bool - function InferenceConfig(igp, latent_model, observation_model; gi_mean, gi_std, - case_data, truth_I_t, truth_I0, tspan, epimethod, - transformation = exp, log_I0_prior, lookahead, latent_model_name, priorpredictive) + function InferenceConfig( + igp, latent_model, observation_model; gi_mean, gi_std, case_data, + truth_I_t, truth_I0, tspan, epimethod, transformation = oneexpy, + log_I0_prior, lookahead, latent_model_name, priorpredictive) new{typeof(gi_mean), typeof(transformation), typeof(igp), typeof(latent_model), typeof(observation_model), typeof(epimethod), typeof(log_I0_prior), typeof(lookahead)}(